From: pauln Date: Tue, 17 Feb 2004 14:29:42 +0000 (+0000) Subject: Return 1 and -1 as we state we do - #113668 X-Git-Tag: rpm-4.4-release~366 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee64849ebf4800c1e351d2e35abff6482ebf9d18;p=platform%2Fupstream%2Frpm.git Return 1 and -1 as we state we do - #113668 CVS patchset: 7099 CVS date: 2004/02/17 14:29:42 --- diff --git a/lib/rpmvercmp.c b/lib/rpmvercmp.c index d577220..5963bf2 100644 --- a/lib/rpmvercmp.c +++ b/lib/rpmvercmp.c @@ -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@*/