NULL pointr check
This commit is contained in:
parent
59fbd803cc
commit
dabfe7b9d8
1 changed files with 2 additions and 1 deletions
3
users.c
3
users.c
|
@ -147,7 +147,8 @@ doDelUser (const char *nick, int killflag, const char *reason)
|
|||
}
|
||||
u = hnode_get (un);
|
||||
|
||||
strlcpy(quitreason, reason, BUFSIZE);
|
||||
if(reason)
|
||||
strlcpy(quitreason, reason, BUFSIZE);
|
||||
list_process (u->chans, u, UserPart);
|
||||
bzero(quitreason, BUFSIZE);
|
||||
|
||||
|
|
Reference in a new issue