summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/users.c b/src/users.c
index e3684a6b6..539de2089 100644
--- a/src/users.c
+++ b/src/users.c
@@ -385,9 +385,11 @@ User *find_byuid(const char *uid)
u = first_uid();
while (u) {
next = next_uid();
- if (!stricmp(uid, u->uid)) {
- return u;
- }
+ if(u->uid) {
+ if (!stricmp(uid, u->uid)) {
+ return u;
+ }
+ }
u = next;
}
return NULL;