summaryrefslogtreecommitdiff
path: root/src/UriCommon.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2015-04-28 07:57:55 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2015-04-28 07:57:55 +0200
commit950148753b2eb4be3f5e63a68b3b3b9f36ea771b (patch)
tree48d0e21ea28a9d7c862ba2ecc04ac04acb02d567 /src/UriCommon.c
parent3aa8ef714e64554d4bae7139d8e8df90bf57201e (diff)
parent37e3bea32e9078168cd2622dcc976d7d10739088 (diff)
Merge tag 'upstream/0.8.2'
Upstream version 0.8.2
Diffstat (limited to 'src/UriCommon.c')
-rw-r--r--src/UriCommon.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/UriCommon.c b/src/UriCommon.c
index c50d89b..8b043f4 100644
--- a/src/UriCommon.c
+++ b/src/UriCommon.c
@@ -98,7 +98,15 @@ int URI_FUNC(CompareRange)(
return -1;
}
- return URI_STRNCMP(a->first, b->first, (a->afterLast - a->first));
+ diff = URI_STRNCMP(a->first, b->first, (a->afterLast - a->first));
+
+ if (diff > 0) {
+ return 1;
+ } else if (diff < 0) {
+ return -1;
+ }
+
+ return diff;
}