summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWill Storey <will@summercat.com>2017-11-27 19:37:11 -0800
committerWill Storey <will@summercat.com>2017-11-27 19:37:11 -0800
commit1a49787ef25103d1a393c81e35fb949322fe0523 (patch)
tree9fa3ea3b390194650abbad47adf837bac105c418 /src
parent8843d4f77d8e829135e2ff9b354990134c58c46a (diff)
downloadirssi-1a49787ef25103d1a393c81e35fb949322fe0523.zip
Revert initializing pointers to NULL
To maintain C89 compatibility
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/fe-events.c2
-rw-r--r--src/irc/core/modes.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/irc/fe-events.c b/src/fe-common/irc/fe-events.c
index cc83d476..850174c5 100644
--- a/src/fe-common/irc/fe-events.c
+++ b/src/fe-common/irc/fe-events.c
@@ -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);
diff --git a/src/irc/core/modes.c b/src/irc/core/modes.c
index ecbf2571..cc3d0faf 100644
--- a/src/irc/core/modes.c
+++ b/src/irc/core/modes.c
@@ -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);