From 57e195391bff0c85326bd271c362ab5b34f67dd7 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sat, 22 Feb 2014 11:44:19 +0100 Subject: relay: fix NULL pointer when reading buffer lines for irc backlog --- src/plugins/relay/irc/relay-irc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/relay/irc/relay-irc.c') diff --git a/src/plugins/relay/irc/relay-irc.c b/src/plugins/relay/irc/relay-irc.c index c2327158b..311d5a837 100644 --- a/src/plugins/relay/irc/relay-irc.c +++ b/src/plugins/relay/irc/relay-irc.c @@ -665,7 +665,7 @@ relay_irc_get_line_info (struct t_relay_client *client, { localvar_nick = weechat_buffer_get_string (buffer, "localvar_nick"); if (localvar_nick && localvar_nick[0] - && (strcmp (ptr_nick, localvar_nick) == 0)) + && ptr_nick && (strcmp (ptr_nick, localvar_nick) == 0)) { command = -1; return; -- cgit v1.2.3