mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Revert initializing pointers to NULL
To maintain C89 compatibility
This commit is contained in:
parent
8843d4f77d
commit
1a49787ef2
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue