diff options
-rw-r--r-- | path-list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/path-list.c b/path-list.c index 0c332dc7b5..f8800f8e66 100644 --- a/path-list.c +++ b/path-list.c @@ -57,7 +57,7 @@ struct path_list_item *path_list_insert(const char *path, struct path_list *list int index = add_entry(list, path); if (index < 0) - index = 1 - index; + index = -1 - index; return list->items + index; } |