diff options
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r-- | mbbsd/passwd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c index ec4e68ec..cd679f03 100644 --- a/mbbsd/passwd.c +++ b/mbbsd/passwd.c @@ -128,11 +128,7 @@ int initcuser(char *userid) // Ptt: setup cuser and usernum here if(userid[0]=='\0' || !(usernum = searchuser(userid)) || usernum > MAX_USERS) - { - memset(&userecbuf, 0, sizeof(userecbuf)); - strcpy(userecbuf.userid, STR_GUEST); return -1; - } passwd_query(usernum, &userecbuf); cuser = &userecbuf; return usernum; |