diff options
Diffstat (limited to 'greeter/verify.c')
-rw-r--r-- | greeter/verify.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/greeter/verify.c b/greeter/verify.c index 4c4a84c..6dcdb08 100644 --- a/greeter/verify.c +++ b/greeter/verify.c @@ -218,6 +218,8 @@ autoLoginEnv(struct display *d, struct verify_info *verify, return 0; greet->name = strdup(d->autoLogin); + if (greet->name == NULL) + return 0; verify->uid = p->pw_uid; verify->gid = p->pw_gid; home = p->pw_dir; |