X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=path-list.c;h=caaa5cc57b05e1a27bb4fd8f49bb74e06b9936e3;hb=c2f599e09fd0496413d1744b5b89b9b5c223555d;hp=0c332dc7b556ba894f0452b0172e7dd1e485f929;hpb=7bbf88c52b202d543310123e1bad9a44b2d6f028;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; }