diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/autocomplete.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/autocomplete.c b/src/tools/autocomplete.c index 979b6c86..f6d57e23 100644 --- a/src/tools/autocomplete.c +++ b/src/tools/autocomplete.c @@ -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; |