diff options
author | Junio C Hamano <junkio@cox.net> | 2006-11-11 14:49:25 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-11-11 14:49:25 -0800 |
commit | 5a4ffc8035e7bac6864482415afa3b1e240de6dd (patch) | |
tree | ce48b4dd8e33dc676ff20ffe2ace1184c765dc94 | |
parent | 8eaf79869f9eddf50ddffffb8d73a054e0514fcd (diff) | |
parent | 057bc808b4aa2e7795f9bd395e68071301bc0b74 (diff) | |
download | git-5a4ffc8035e7bac6864482415afa3b1e240de6dd.tar.gz git-5a4ffc8035e7bac6864482415afa3b1e240de6dd.tar.xz |
Merge branch 'maint'
* maint:
path-list: fix path-list-insert return value
-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 0c332dc7b..f8800f8e6 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; } |