projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'hold/am'
[git.git]
/
server-info.c
diff --git
a/server-info.c
b/server-info.c
index
7d7bcb2
..
df19e49
100644
(file)
--- a/
server-info.c
+++ b/
server-info.c
@@
-140,7
+140,12
@@
static int compare_info(const void *a_, const void *b_)
return 1;
/* then it does not matter but at least keep the comparison stable */
return 1;
/* then it does not matter but at least keep the comparison stable */
- return (*a)->p - (*b)->p;
+ if ((*a)->p == (*b)->p)
+ return 0;
+ else if ((*a)->p < (*b)->p)
+ return -1;
+ else
+ return 1;
}
static void init_pack_info(const char *infofile, int force)
}
static void init_pack_info(const char *infofile, int force)