From e557239a4cb43f70d7fa33ffe44bd5718bf9fd2f Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 25 Dec 2012 16:58:58 +0100 Subject: [PATCH] irc: remove unneeded check of nick pointer (can not be NULL there) --- src/plugins/irc/irc-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 60bf97eca..3f1b254ee 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -936,7 +936,7 @@ IRC_PROTOCOL_CALLBACK(nick) weechat_buffer_set (NULL, "hotlist", "-"); /* set host for nick if needed */ - if (ptr_nick && !ptr_nick->host) + if (!ptr_nick->host) ptr_nick->host = strdup (address); /* change nick and display message on all channels */