X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=path-list.c;h=caaa5cc57b05e1a27bb4fd8f49bb74e06b9936e3;hb=b6936205e73c058784288d21d1937e5bba26b91b;hp=0c332dc7b556ba894f0452b0172e7dd1e485f929;hpb=284fe4beb6b4835ef6857cd56b34c70c1d12b14d;p=git.git diff --git a/path-list.c b/path-list.c index 0c332dc7b..caaa5cc57 100644 --- a/path-list.c +++ b/path-list.c @@ -1,4 +1,3 @@ -#include #include "cache.h" #include "path-list.h" @@ -57,7 +56,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; }