diff options
Diffstat (limited to 'source3/utils/pdbedit.c')
-rw-r--r-- | source3/utils/pdbedit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index a86ea2ef5f..6022f9aef2 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -185,6 +185,8 @@ static int new_user (char *username, char *fullname, char *homedir, char *drive, uchar new_nt_p16[16]; char *password1, *password2; + ZERO_STRUCT(sam_pwent); + if (pdb_getsampwnam (username)) { fprintf (stderr, "Username already exist in database!\n"); |