diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-06-16 16:23:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-06-16 16:23:22 -0700 |
commit | e1c07fa8b169639ee105890082211ba70241b66c (patch) | |
tree | 1bbfeb9554a8009d0483b98a37947b3ae95474ef /object.c | |
parent | db1cf2eb987d428d75724be883aaea7e34b616e3 (diff) | |
parent | 97a20eea199f490760cc25b1b7df28361f54e536 (diff) | |
download | git-e1c07fa8b169639ee105890082211ba70241b66c.tar.gz git-e1c07fa8b169639ee105890082211ba70241b66c.tar.xz |
Merge branch 'jn/maint-bundle' into maint
* jn/maint-bundle:
fix "bundle --stdin" segfault
t5704 (bundle): add tests for bundle --stdin
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -252,10 +252,10 @@ void add_object_array_with_mode(struct object *obj, const char *name, struct obj void object_array_remove_duplicates(struct object_array *array) { - int ref, src, dst; + unsigned int ref, src, dst; struct object_array_entry *objects = array->objects; - for (ref = 0; ref < array->nr - 1; ref++) { + for (ref = 0; ref + 1 < array->nr; ref++) { for (src = ref + 1, dst = src; src < array->nr; src++) { |