summaryrefslogtreecommitdiff
path: root/lib/nss_wrapper
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/nss_wrapper
parentbdfba236e9aebd6c277851efdb7ee57620810282 (diff)
downloadsamba-b46eccfb1983c3107bcce2b8b5689e37cf3ec55f.tar.gz
samba-b46eccfb1983c3107bcce2b8b5689e37cf3ec55f.tar.bz2
samba-b46eccfb1983c3107bcce2b8b5689e37cf3ec55f.zip
nss_wrapper: Fixed a possible NULL pointer problem.
Diffstat (limited to 'lib/nss_wrapper')
-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 ee65350208..42fc4cfb02 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);