From f429df668ac09575b0db710aa54cb2117dc542c3 Mon Sep 17 00:00:00 2001 From: Wenji Huang Date: Thu, 26 Nov 2009 10:03:58 +0800 Subject: [PATCH] Fix compilation warning of passing NULL to int parameter * util.cxx (in_group_id): Replace NULL with 0. --- util.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.cxx b/util.cxx index da8fc9443..bffeb04e5 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); -- 2.43.5