Return 1 and -1 as we state we do - #113668
authorpauln <devnull@localhost>
Tue, 17 Feb 2004 14:29:42 +0000 (14:29 +0000)
committerpauln <devnull@localhost>
Tue, 17 Feb 2004 14:29:42 +0000 (14:29 +0000)
CVS patchset: 7099
CVS date: 2004/02/17 14:29:42

lib/rpmvercmp.c

index d577220..5963bf2 100644 (file)
@@ -89,7 +89,7 @@ int rpmvercmp(const char * a, const char * b)
        /* if they are equal because there might be more segments to */
        /* compare */
        rc = strcmp(one, two);
-       if (rc) return rc;
+       if (rc) return (rc < 1 ? -1 : 1);
 
        /* restore character that was replaced by null above */
 /*@-boundswrite@*/