null check auth current user get

CID 1155286
devs/discomfitor/eo
Mike Blumenkrantz 9 years ago
parent 865dc17221
commit 3f3322cb9c
  1. 1
      src/bin/e_auth.c

@ -26,6 +26,7 @@ _auth_auth_get_current_user(void)
struct passwd *pwent = NULL;
pwent = getpwuid(getuid());
if (!pwent) return NULL;
user = strdup(pwent->pw_name);
return user;
}

Loading…
Cancel
Save