summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-07 09:30:29 +0200
committerAndreas Schneider <asn@samba.org>2010-06-28 10:18:12 +0200
commitb46eccfb1983c3107bcce2b8b5689e37cf3ec55f (patch)
tree81b6eb7b6b1b953f5b2a158c6406b97d32f2dc3d /lib
parentbdfba236e9aebd6c277851efdb7ee57620810282 (diff)
downloadsamba-b46eccfb1983c3107bcce2b8b5689e37cf3ec55f.tar.gz
nss_wrapper: Fixed a possible NULL pointer problem.
Diffstat (limited to 'lib')
-rw-r--r--lib/nss_wrapper/nss_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index ee65350208e..42fc4cfb026 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -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);