summaryrefslogtreecommitdiffstats
path: root/source/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 05:53:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 05:53:07 +0000
commit6650b21ceabefab037cfd3b135039914fb75e3a9 (patch)
tree8a6147b572725b657820a7b6b2c40759b3cfe293 /source/utils
parent4fc9e16ad7a77cf2e37b27640c0dec2052e9cda0 (diff)
downloadsamba-6650b21ceabefab037cfd3b135039914fb75e3a9.tar.gz
samba-6650b21ceabefab037cfd3b135039914fb75e3a9.tar.xz
samba-6650b21ceabefab037cfd3b135039914fb75e3a9.zip
Try to get the compiler not to complain about assignments and truth values...
Andrew Bartlett
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/pdbedit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/utils/pdbedit.c b/source/utils/pdbedit.c
index 08ba54605fc..5202d8d3fe8 100644
--- a/source/utils/pdbedit.c
+++ b/source/utils/pdbedit.c
@@ -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 {