diff options
-rw-r--r-- | src/user.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |