Merge branch 'maint'

* maint:
  path-list: fix path-list-insert return value
maint
Junio C Hamano 2006-11-11 14:49:25 -08:00
commit 5a4ffc8035
1 changed files with 1 additions and 1 deletions

View 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;
}