nss_wrapper: Fixed a possible NULL pointer problem.
authorAndreas Schneider <asn@samba.org>
Mon, 7 Jun 2010 07:30:29 +0000 (09:30 +0200)
committerAndreas Schneider <asn@samba.org>
Mon, 28 Jun 2010 08:18:12 +0000 (10:18 +0200)
lib/nss_wrapper/nss_wrapper.c

index ee65350208ef9d3c4d1fba2e6f8e63c99e930734..42fc4cfb0267a6910dbd314b03646a536fe4a486 100644 (file)
@@ -2172,7 +2172,7 @@ _PUBLIC_ int nwrap_getgrouplist(const char *user, gid_t group, gid_t *groups, in
        struct group *grp;
        gid_t *groups_tmp;
        int count = 1;
-       const char *name_of_group = NULL;
+       const char *name_of_group = "";
 
        if (!nwrap_enabled()) {
                return real_getgrouplist(user, group, groups, ngroups);