summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVyacheslav Potoropin <vpotoropin@almalinux.org>2022-08-25 23:08:09 +0200
committerPanu Matilainen <pmatilai@redhat.com>2022-09-02 08:48:10 +0300
commitbea9099f0b8ecf3834354d106bae37d0eadc7217 (patch)
tree8d6f0e2f6cd1d2eb9454b83149aef17ec1d6c52e
parent3b7686a6c79cfe6d38f408747bd415ef46e09786 (diff)
downloadrpm-bea9099f0b8ecf3834354d106bae37d0eadc7217.tar.gz
Fix rpm lua rpm_vercmp error message if second argument is broken
(cherry picked from commit cf3150509ed7eb2407bdf1f5572cd613a30c2b86)
-rw-r--r--rpmio/rpmlua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmio/rpmlua.c b/rpmio/rpmlua.c
index 3f0bdeb3f..615146fab 100644
--- a/rpmio/rpmlua.c
+++ b/rpmio/rpmlua.c
@@ -491,7 +491,7 @@ static int rpm_vercmp(lua_State *L)
} else {
if (v1 == NULL)
luaL_argerror(L, 1, "invalid version ");
- if (v1 == NULL)
+ if (v2 == NULL)
luaL_argerror(L, 2, "invalid version ");
}
rpmverFree(v1);