grilo-plugins/0001-grl-lua-factory-Remove-a-bad-pop.patch
Bastien Nocera f65525bcb0 + grilo-plugins-0.3.13-3
Fix crash with newer lua
Resolves: rhbz#1958772
2021-05-12 11:45:49 +02:00

27 lines
738 B
Diff

From 1b0fae453daf32eda9d0267c1a13cfebe324f89f Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
Date: Sun, 4 Apr 2021 18:30:57 +0000
Subject: [PATCH] grl-lua-factory: Remove a bad pop
This was exposed by Lua 5.4.3, causing a crash.
---
src/lua-factory/grl-lua-factory.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/lua-factory/grl-lua-factory.c b/src/lua-factory/grl-lua-factory.c
index 4f37984..3a3b824 100644
--- a/src/lua-factory/grl-lua-factory.c
+++ b/src/lua-factory/grl-lua-factory.c
@@ -1255,8 +1255,6 @@ table_to_tags (lua_State *L)
lua_pop (L, 1);
}
- lua_pop (L, 1);
-
if (array->len == 0) {
g_ptr_array_free (array, TRUE);
return NULL;
--
2.31.1