mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-07 08:45:39 +00:00
Followed richtroye suggestion and implemented the net == NULL guard in
servlist_favchan_find().
This commit is contained in:
1 parent
133b0f7d94
commit
7353bf2698
2 files changed
+7
-2
No files matched your search
@@ -877,10 +877,15 @@ servlist_server_find (ircnet *net, char *name, int *pos)
|
||||
favchannel *
|
||||
servlist_favchan_find (ircnet *net, char *channel, int *pos)
|
||||
{
|
||||
GSList *list = net->favchanlist;
|
||||
GSList *list;
|
||||
favchannel *favchan;
|
||||
int i = 0;
|
||||
|
||||
if (net == NULL)
|
||||
return NULL;
|
||||
|
||||
list = net->favchanlist;
|
||||
|
||||
while (list)
|
||||
{
|
||||
favchan = list->data;
|
||||
|
||||
Reference in new issue
Block a user