Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/version.c')
-rw-r--r--lib/libalpm/version.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/version.c b/lib/libalpm/version.c
index 00481677..6d68aacd 100644
--- a/lib/libalpm/version.c
+++ b/lib/libalpm/version.c
@@ -109,7 +109,8 @@ static int rpmvercmp(const char *a, const char *b)
/* If the separator lengths were different, we are also finished */
if ((one - ptr1) != (two - ptr2)) {
- return (one - ptr1) < (two - ptr2) ? -1 : 1;
+ ret = (one - ptr1) < (two - ptr2) ? -1 : 1;
+ goto cleanup;
}
ptr1 = one;