From ee64849ebf4800c1e351d2e35abff6482ebf9d18 Mon Sep 17 00:00:00 2001 From: pauln Date: Tue, 17 Feb 2004 14:29:42 +0000 Subject: Return 1 and -1 as we state we do - #113668 CVS patchset: 7099 CVS date: 2004/02/17 14:29:42 --- lib/rpmvercmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rpmvercmp.c') diff --git a/lib/rpmvercmp.c b/lib/rpmvercmp.c index d5772206b..5963bf27a 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@*/ -- cgit v1.2.3