Re: [PATCH] Add NULL checks for getugroups grouplist argument
Paul Eggert <[email protected]>
| Newsgroups | gmane.comp.lib.gnulib.bugs |
|---|---|
| Organization | UCLA Computer Science Department |
| Message-ID | <[email protected]> |
On 2026-08-19 08:24, Sergey Zhidkih wrote: > So if this is the case, then there's no need for explicit NULL check > for grouplist. This inconsistency creates questions which are detected > by static analyzers. The other option would be adding _GL_ATTRIBUTE_NONNULL_IF_NONZERO to the header declaring getugroups. Not sure I see the use case for a null pointer and a nonzero count.