summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-11-11 14:49:25 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-11-11 14:49:25 -0800
commit5a4ffc8035e7bac6864482415afa3b1e240de6dd (patch)
treece48b4dd8e33dc676ff20ffe2ace1184c765dc94
parentgit-annotate: fix -S on graft file with comments. (diff)
parentpath-list: fix path-list-insert return value (diff)
downloadtgif-5a4ffc8035e7bac6864482415afa3b1e240de6dd.tar.xz
Merge branch 'maint'
* maint: path-list: fix path-list-insert return value
-rw-r--r--path-list.c2
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;
}