diff options
Diffstat (limited to 'src/locate.c')
-rw-r--r-- | src/locate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locate.c b/src/locate.c index ba58c5d77..6a7002f2e 100644 --- a/src/locate.c +++ b/src/locate.c @@ -88,7 +88,7 @@ locate_item_list_new(unsigned length) struct locate_item_list * locate_item_list_parse(char *argv[], unsigned argc, bool fold_case) { - if (argc % 2 != 0) + if (argc == 0 || argc % 2 != 0) return NULL; struct locate_item_list *list = locate_item_list_new(argc / 2); |