diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-18 22:04:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-18 22:04:24 +0000 |
commit | 9579b9823707b9acadfd7bf24d1c540eacf53fc0 (patch) | |
tree | 41ddb7a17316ec66ea47bdc58e9b562fbf157222 /source3/groupdb | |
parent | bb9622bfa6bbbe74a6e4c032cf81501bcbff999d (diff) | |
download | samba-9579b9823707b9acadfd7bf24d1c540eacf53fc0.tar.gz samba-9579b9823707b9acadfd7bf24d1c540eacf53fc0.tar.bz2 samba-9579b9823707b9acadfd7bf24d1c540eacf53fc0.zip |
Added OSF1 changes to HEAD (-lsecurity etc.)
groupdb/groupdb.c: Fixed compile error caught by IRIX compiler.
utils/smbpasswd.c: Fixed SunOS optind, optarg problem.
Jeremy.
(This used to be commit 30af39ae1edf51d5d06a1764982e5df431c142ac)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/groupdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/groupdb/groupdb.c b/source3/groupdb/groupdb.c index b8952358fb..5b85bb127c 100644 --- a/source3/groupdb/groupdb.c +++ b/source3/groupdb/groupdb.c @@ -187,14 +187,14 @@ static BOOL user_is_member(char *user_name, DOMAIN_GRP_MEMBER *mem, int num_mem) *************************************************************************/ BOOL iterate_getusergroupsnam(char *user_name, DOMAIN_GRP **grps, int *num_grps) { - DOMAIN_GRP *grp; + DOMAIN_GRP *grp = NULL; DOMAIN_GRP_MEMBER *mem = NULL; int num_mem = 0; void *fp = NULL; DEBUG(10, ("search for usergroups by name: %s\n", user_name)); - if (user_name == NULL || grp == NULL || num_grps == NULL) + if (user_name == NULL || grps == NULL || num_grps == NULL) { return False; } @@ -250,12 +250,12 @@ BOOL iterate_getusergroupsnam(char *user_name, DOMAIN_GRP **grps, int *num_grps) *************************************************************************/ BOOL enumdomgroups(DOMAIN_GRP **grps, int *num_grps) { - DOMAIN_GRP *grp; + DOMAIN_GRP *grp = NULL; void *fp = NULL; DEBUG(10, ("enum user groups\n")); - if (grp == NULL || num_grps == NULL) + if (grps == NULL || num_grps == NULL) { return False; } |