diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-05-24 21:49:46 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-05-24 21:49:46 +0100 |
commit | 7353bf269817ead3c473c47b60f5b6b66900de73 (patch) | |
tree | da1a493ba410a17cd1e382935d2b23d6cebf221b /src/common/inbound.c | |
parent | 133b0f7d9425219c291f58f12421ff1f2dbdfcbb (diff) |
Followed richtroye suggestion and implemented the net == NULL guard in
servlist_favchan_find().
Diffstat (limited to 'src/common/inbound.c')
-rw-r--r-- | src/common/inbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index d0424296..bbdd89c6 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -1094,7 +1094,7 @@ check_autojoin_channels (server *serv) sess->willjoinchannel[0] = 0; /* Is this channel in our favorites? */ - fav = serv->network == NULL ? NULL : servlist_favchan_find (serv->network, sess->waitchannel, NULL); + fav = servlist_favchan_find (serv->network, sess->waitchannel, NULL); /* session->channelkey is initially unset for channels joined from the favorites. You have to fill them up manually from favorites settings. */ if (fav) |