summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.cxx b/util.cxx
index da8fc944..bffeb04e 100644
--- a/util.cxx
+++ b/util.cxx
@@ -200,7 +200,7 @@ in_group_id (gid_t target_gid)
return true;
// Get the list of the user's groups.
- int ngids = getgroups(NULL, 0); // Returns the number to allocate.
+ int ngids = getgroups(0, 0); // Returns the number to allocate.
if (ngids > 0) {
gid_t gidlist[ngids];
ngids = getgroups(ngids, gidlist);