From: Alejandro Colomar Date: Sun, 10 Aug 2025 16:28:02 +0000 (+0200) Subject: man/man2/getgroups.2: setgroups(2): Don't use NULL as a 0-length array X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e5e85f923b2e31af2b19a866af1324459248603;p=thirdparty%2Fman-pages.git man/man2/getgroups.2: setgroups(2): Don't use NULL as a 0-length array Reported-by: Christopher Bazley Signed-off-by: Alejandro Colomar --- diff --git a/man/man2/getgroups.2 b/man/man2/getgroups.2 index 635158282..cdda43992 100644 --- a/man/man2/getgroups.2 +++ b/man/man2/getgroups.2 @@ -16,7 +16,7 @@ Standard C library .P .B #include .P -.BI "int setgroups(size_t " size ", const gid_t " list "[_Nullable " size ]); +.BI "int setgroups(size_t " size ", const gid_t " list [ size ]); .fi .P .RS -4 @@ -75,7 +75,7 @@ A process can drop all of its supplementary groups with the call: .P .in +4n .EX -setgroups(0, NULL); +setgroups(0, (gid_t [0]){}); .EE .in .SH RETURN VALUE