mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
Prevent some potential null-pointer deferences.
Spotted by our friend scan-build.
This commit is contained in:
parent
228f487a69
commit
98ead50b4e
3 changed files with 5 additions and 1 deletions
|
|
@ -148,6 +148,8 @@ static void print_server_splits(IRC_SERVER_REC *server, TEMP_SPLIT_REC *rec, con
|
|||
char *sourceserver;
|
||||
GSList *tmp;
|
||||
|
||||
g_return_if_fail(rec->servers != NULL);
|
||||
|
||||
destservers = g_string_new(NULL);
|
||||
for (tmp = rec->servers; tmp != NULL; tmp = tmp->next) {
|
||||
NETSPLIT_SERVER_REC *rec = tmp->data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue