1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-10 13:57:47 +03:00

fixed two uninitialised variables

(This used to be commit eefb36f130f79f2f2c6cfb58c1646aa6ce4303be)
This commit is contained in:
Andrew Tridgell 2000-05-12 06:38:41 +00:00
parent 479c73559e
commit 053322d0ca
2 changed files with 2 additions and 3 deletions

View File

@ -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"));

View File

@ -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)