mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 08:46:22 +00:00
Fixed error when losing connection and segfaulting on notify_remind()
This commit is contained in:
@@ -74,7 +74,13 @@ autocomplete_free(Autocomplete ac)
|
||||
gint
|
||||
autocomplete_length(Autocomplete ac)
|
||||
{
|
||||
return g_slist_length(ac->items);
|
||||
if (ac == NULL) {
|
||||
return 0;
|
||||
} else if (ac->items == NULL) {
|
||||
return 0;
|
||||
} else {
|
||||
return g_slist_length(ac->items);
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
|
||||
Reference in New Issue
Block a user