diff options
author | Vyacheslav Potoropin <vpotoropin@almalinux.org> | 2022-08-25 23:08:09 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2022-09-02 08:48:10 +0300 |
commit | bea9099f0b8ecf3834354d106bae37d0eadc7217 (patch) | |
tree | 8d6f0e2f6cd1d2eb9454b83149aef17ec1d6c52e | |
parent | 3b7686a6c79cfe6d38f408747bd415ef46e09786 (diff) | |
download | rpm-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.c | 2 |
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); |