mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Fixed potential segfaults on autocomplete
This commit is contained in:
parent
dfb1e1c4a2
commit
a519d25e4b
@ -152,6 +152,10 @@ autocomplete_complete(Autocomplete ac, gchar *search_str)
|
||||
{
|
||||
gchar *found = NULL;
|
||||
|
||||
// no autocomplete to search
|
||||
if (ac == NULL)
|
||||
return NULL;
|
||||
|
||||
// no items to search
|
||||
if (!ac->items)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user