summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_samr.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-12 06:38:41 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-12 06:38:41 +0000
commit053322d0ca6b68be638c2d5f4caa9909a19c1646 (patch)
treeb05c21aca5a7e86a76a7b3d575802c1e3817ea49 /source3/rpc_server/srv_samr.c
parent479c73559e137a406f912f8e262e1658861dc9db (diff)
downloadsamba-053322d0ca6b68be638c2d5f4caa9909a19c1646.tar.gz
samba-053322d0ca6b68be638c2d5f4caa9909a19c1646.tar.bz2
samba-053322d0ca6b68be638c2d5f4caa9909a19c1646.zip
fixed two uninitialised variables
(This used to be commit eefb36f130f79f2f2c6cfb58c1646aa6ce4303be)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r--source3/rpc_server/srv_samr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c
index 650fa704b8..d09ae2ad01 100644
--- a/source3/rpc_server/srv_samr.c
+++ b/source3/rpc_server/srv_samr.c
@@ -119,7 +119,6 @@ static BOOL get_sampwd_entries(SAM_USER_INFO_21 *pw_buf,
static char *unmap_unixname(char *unix_user_name, int name_idx)
{
char *mapfile = lp_username_map();
- char *s;
char **lines;
static pstring tok;
int i;
@@ -136,7 +135,7 @@ static char *unmap_unixname(char *unix_user_name, int name_idx)
DEBUG(5,("unmap_unixname: scanning username map %s, index: %d\n", mapfile, name_idx));
for (i=0; lines[i]; i++) {
- char *unixname = s;
+ char *unixname = lines[i];
char *dosname = strchr(unixname,'=');
if (!dosname)