diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-11-26 10:03:58 +0800 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-11-26 10:03:58 +0800 |
commit | f429df668ac09575b0db710aa54cb2117dc542c3 (patch) | |
tree | 1404572fc5736bbcc47657560b25c7e1b703bc3e /util.cxx | |
parent | db0a43c3f6e50f476213a7f6e6b50ce0ba008d9f (diff) | |
download | systemtap-steved-f429df668ac09575b0db710aa54cb2117dc542c3.tar.gz systemtap-steved-f429df668ac09575b0db710aa54cb2117dc542c3.tar.xz systemtap-steved-f429df668ac09575b0db710aa54cb2117dc542c3.zip |
Fix compilation warning of passing NULL to int parameter
* util.cxx (in_group_id): Replace NULL with 0.
Diffstat (limited to 'util.cxx')
-rw-r--r-- | util.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |