From 618345a2ef1fa58f7023e16f4b3a981f5b1a5b7e Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Wed, 22 Mar 2017 09:41:07 +0100 Subject: [PATCH] Fixes #4589 (#4644) Produces a segfault with the telenowa script (missing bitmap) --- radio/src/lua/api_lcd.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/radio/src/lua/api_lcd.cpp b/radio/src/lua/api_lcd.cpp index e399a2f53..16711a76c 100644 --- a/radio/src/lua/api_lcd.cpp +++ b/radio/src/lua/api_lcd.cpp @@ -422,7 +422,6 @@ static int luaOpenBitmap(lua_State * L) static BitmapBuffer * checkBitmap(lua_State * L, int index) { BitmapBuffer ** b = (BitmapBuffer **)luaL_checkudata(L, index, LUA_BITMAPHANDLE); - if (!*b) luaL_error(L, "null Image"); return *b; }