Don't bother storing what find_in_list() returns, it goes unused. Found by Coverity.

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@298 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Tim Cava
2013-07-31 05:50:22 +00:00
parent d68a196b8a
commit 4057523aef

View File

@@ -399,7 +399,7 @@ char *channel;
if (server == -1)
return 1;
chan = get_server_channels(server);
if (!chan || !(chan = (ChannelList *)find_in_list((List **)chan, channel, 0)))
if (!chan || !find_in_list((List **)chan, channel, 0))
{
my_send_to_server(server, "JOIN %s%s%s\n", channel, key?" ":empty_string, key?key:empty_string);
joined = 1;