diff options
Diffstat (limited to 'mbbsd/cache.c')
-rw-r--r-- | mbbsd/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/cache.c b/mbbsd/cache.c index fee5d950..1e2019cb 100644 --- a/mbbsd/cache.c +++ b/mbbsd/cache.c @@ -187,7 +187,7 @@ searchuser(char *userid) for (times = 0; times < MAX_USERS && p != -1 && p < MAX_USERS ; ++times) { if (strcasecmp(SHM->userid[p], userid) == 0) { - strcpy(userid, SHM->userid[p]); + if(userid[0]) strcpy(userid, SHM->userid[p]); return p + 1; } p = SHM->next_in_hash[p]; |