diff options
-rw-r--r-- | sysdeps/unix/sysv/linux/getlogin_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/getlogin_r.c b/sysdeps/unix/sysv/linux/getlogin_r.c index 7d4d6c0ed5..42041eeee0 100644 --- a/sysdeps/unix/sysv/linux/getlogin_r.c +++ b/sysdeps/unix/sysv/linux/getlogin_r.c @@ -81,7 +81,7 @@ __getlogin_r_loginuid (name, namesize) use_malloc = true; } - if (res != 0) + if (res != 0 || tpwd == NULL) { result = -1; goto out; |