Skip to content

Commit

Permalink
Properly initialize ->message.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarbeutner committed Aug 13, 2013
1 parent 80e32fc commit c9d54d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions localuser/localuser.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ nick *registerlocaluserflags(char *nickname, char *ident, char *host, char *real

newuser->cloak_count = 0;
newuser->cloak_extra = NULL;
newuser->message = NULL;

if (connected) {
/* Check for nick collision */
Expand Down
1 change: 1 addition & 0 deletions nick/nickhandlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ int handlenickmsg(void *source, int cargc, char **cargv) {
np->accountts=0;
np->cloak_count = 0;
np->cloak_extra = NULL;
np->message = NULL;
if(cargc>=9) {
int sethostarg = 6, opernamearg = 6, accountarg = 6;

Expand Down

0 comments on commit c9d54d5

Please sign in to comment.