1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Revert initializing pointers to NULL

To maintain C89 compatibility
This commit is contained in:
Will Storey 2017-11-27 19:37:11 -08:00
parent 8843d4f77d
commit 1a49787ef2
2 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ static void event_nick(IRC_SERVER_REC *server, const char *data,
static void event_mode(IRC_SERVER_REC *server, const char *data,
const char *nick, const char *addr)
{
char *params = NULL, *channel = NULL, *mode = NULL;
char *params, *channel, *mode;
g_return_if_fail(data != NULL);

View File

@ -480,8 +480,8 @@ static void event_user_mode(IRC_SERVER_REC *server, const char *data)
static void event_mode(IRC_SERVER_REC *server, const char *data,
const char *nick)
{
IRC_CHANNEL_REC *chanrec = NULL;
char *params = NULL, *channel = NULL, *mode = NULL;
IRC_CHANNEL_REC *chanrec;
char *params, *channel, *mode;
g_return_if_fail(data != NULL);