Try to get the compiler not to complain about assignments and truth values...
authorAndrew Bartlett <abartlet@samba.org>
Sat, 26 Jan 2002 05:53:07 +0000 (05:53 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 26 Jan 2002 05:53:07 +0000 (05:53 +0000)
Andrew Bartlett
(This used to be commit 6650b21ceabefab037cfd3b135039914fb75e3a9)

source3/utils/pdbedit.c

index 08ba54605fcc62ffa3e29604b94f1016e2346c50..5202d8d3fe8e0317bbb802d220ada31f8f36462f 100644 (file)
@@ -227,8 +227,7 @@ static int new_user (char *username, char *fullname, char *homedir, char *drive,
        
        ZERO_STRUCT(sam_pwent);
 
-       if (pwd = getpwnam_alloc(username)) {
-       
+       if ((pwd = getpwnam_alloc(username))) {
                pdb_init_sam_pw (&sam_pwent, pwd);
                passwd_free(&pwd);
        } else {