git: 02fc4e319c86 - main - cache: use flexible array member
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Mar 2022 14:43:42 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=02fc4e319c86bce7c7661daffb3705b0680e9ed2 commit 02fc4e319c86bce7c7661daffb3705b0680e9ed2 Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-03-13 14:42:20 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-03-13 14:43:35 +0000 cache: use flexible array member ... instead of 0-sizing the array --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 254b5d4d1b69..13c84791583e 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -277,7 +277,7 @@ struct namecache { } n_un; u_char nc_flag; /* flag bits */ u_char nc_nlen; /* length of name */ - char nc_name[0]; /* segment name + nul */ + char nc_name[]; /* segment name + nul */ }; /*