summaryrefslogtreecommitdiff
path: root/src/plugins/relay/irc/relay-irc.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-02-22 11:44:19 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-02-22 11:44:19 +0100
commit57e195391bff0c85326bd271c362ab5b34f67dd7 (patch)
tree7327fdf9f54c93de2a4bba00554d484c190acb53 /src/plugins/relay/irc/relay-irc.c
parent639fbbff793b5b9ac679e4ff85c8dabe67d4effe (diff)
downloadweechat-57e195391bff0c85326bd271c362ab5b34f67dd7.zip
relay: fix NULL pointer when reading buffer lines for irc backlog
Diffstat (limited to 'src/plugins/relay/irc/relay-irc.c')
-rw-r--r--src/plugins/relay/irc/relay-irc.c2
1 files changed, 1 insertions, 1 deletions
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;