Fixed potential segfaults on autocomplete
This commit is contained in:
@@ -152,6 +152,10 @@ autocomplete_complete(Autocomplete ac, gchar *search_str)
|
|||||||
{
|
{
|
||||||
gchar *found = NULL;
|
gchar *found = NULL;
|
||||||
|
|
||||||
|
// no autocomplete to search
|
||||||
|
if (ac == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
// no items to search
|
// no items to search
|
||||||
if (!ac->items)
|
if (!ac->items)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user