diff --git a/slock.c b/slock.c index 1935283..0f1d585 100644 --- a/slock.c +++ b/slock.c @@ -736,7 +736,7 @@ main(int argc, char **argv) { #ifndef HAVE_BSD_AUTH pws = getpw(); - if (strlen(pwd) < 2) { + if (strlen(pws) < 2) { die("This user has no password set.\n"); } #endif