summaryrefslogtreecommitdiff
path: root/source/groupdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-11-18 22:04:24 +0000
committerJeremy Allison <jra@samba.org>1998-11-18 22:04:24 +0000
commit30af39ae1edf51d5d06a1764982e5df431c142ac (patch)
tree255997bb81a88a168bd2b7ef0cf458fb245f2aa3 /source/groupdb
parentc154b1601f5891d664fc538ec8874fa8ef2061e6 (diff)
downloadsamba-30af39ae1edf51d5d06a1764982e5df431c142ac.tar.gz
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.
Diffstat (limited to 'source/groupdb')
-rw-r--r--source/groupdb/groupdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/groupdb/groupdb.c b/source/groupdb/groupdb.c
index b8952358fbc..5b85bb127c2 100644
--- a/source/groupdb/groupdb.c
+++ b/source/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;
}