Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  path-list: fix path-list-insert return value
  • Loading branch information
Junio C Hamano committed Nov 11, 2006
2 parents 8eaf798 + 057bc80 commit 5a4ffc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5a4ffc8

Please sign in to comment.