summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 65552e6d3..7114529d5 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -142,9 +142,9 @@ int rpmvercmp(const char * a, const char * b)
*str2 = '\0';
/* take care of the case where the two version segments are */
- /* different types: one numeric and one alpha */
+ /* different types: one numeric, the other alpha (i.e. empty) */
if (one == str1) return -1; /* arbitrary */
- if (two == str2) return -1;
+ if (two == str2) return 1;
if (isnum) {
/* this used to be done by converting the digit segments */