summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user.c b/src/user.c
index 1f28e78..76cb470 100644
--- a/src/user.c
+++ b/src/user.c
@@ -271,7 +271,7 @@ user_update_from_pwent (User *user,
g_object_notify (G_OBJECT (user), "locked");
}
- if (passwd && passwd[0] != 0) {
+ if (passwd == NULL || passwd[0] != 0) {
mode = PASSWORD_MODE_REGULAR;
}
else {