Merge branch 'maint'
authorJunio C Hamano <junkio@cox.net>
Sat, 11 Nov 2006 22:49:25 +0000 (14:49 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 11 Nov 2006 22:49:25 +0000 (14:49 -0800)
* maint:
path-list: fix path-list-insert return value

path-list.c
index 0c332dc7b556ba894f0452b0172e7dd1e485f929..f8800f8e66e39f035820c2aeb0843fb3ebf65fb3 100644 (file)
@@ -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;
 }