projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9763b4c
)
Fix compare
author
Dennis Schafroth
<dennis@indexdata.com>
Thu, 4 Oct 2012 17:27:55 +0000
(19:27 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Thu, 4 Oct 2012 17:27:55 +0000
(19:27 +0200)
src/reclists.c
patch
|
blob
|
history
diff --git
a/src/reclists.c
b/src/reclists.c
index
07dd0fe
..
c4dd4e1
100644
(file)
--- a/
src/reclists.c
+++ b/
src/reclists.c
@@
-400,11
+400,13
@@
struct record_cluster *reclist_insert(struct reclist *l,
int reclist_sortparms_cmp(struct reclist_sortparms *sort1, struct reclist_sortparms *sort2)
{
+ int rc;
if (sort1 == sort2)
return 0;
if (sort1 == 0 || sort2 == 0)
return 1;
- return strcmp(sort1->name, sort2->name) || sort1->increasing != sort1->increasing || sort1->type != sort2->type;
+ rc = strcmp(sort1->name, sort2->name) || sort1->increasing != sort2->increasing || sort1->type != sort2->type;
+ return rc;
}
/*
* Local variables: