summaryrefslogtreecommitdiff
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
parent479c73559e137a406f912f8e262e1658861dc9db (diff)
downloadsamba-053322d0ca6b68be638c2d5f4caa9909a19c1646.tar.gz
samba-053322d0ca6b68be638c2d5f4caa9909a19c1646.tar.bz2
samba-053322d0ca6b68be638c2d5f4caa9909a19c1646.zip
fixed two uninitialised variables
(This used to be commit eefb36f130f79f2f2c6cfb58c1646aa6ce4303be)
-rw-r--r--source3/passdb/smbpass.c2
-rw-r--r--source3/rpc_server/srv_samr.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index bfb3946b1a..1579a5e00d 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -41,7 +41,7 @@ static void *startsmbfilepwent_internal(const char *pfile, enum pwf_access_type
FILE *fp = NULL;
const char *open_mode = NULL;
int race_loop = 0;
- int lock_type;
+ int lock_type = F_RDLCK;
if (!*pfile) {
DEBUG(0, ("startsmbfilepwent: No SMB password file set\n"));
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)