From 8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb Mon Sep 17 00:00:00 2001 From: William Ahern Date: Thu, 14 Jan 2016 18:30:30 -0800 Subject: Lua 5.1 doesn't permit NULL msg argument to luaL_checkstack --- src/openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openssl.c b/src/openssl.c index 4eba534..f0c5684 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -3202,7 +3202,7 @@ static int pk_getParameters(lua_State *L) { * Subsequent parameters will be assigned as fields. */ lua_pushstring(L, "{"); - luaL_checkstack(L, nopts, NULL); + luaL_checkstack(L, nopts, "too many arguments"); for (const char *const *optname = optlist; *optname; optname++) { lua_pushstring(L, *optname); } @@ -3211,7 +3211,7 @@ static int pk_getParameters(lua_State *L) { otop = lua_gettop(L); /* provide space for results and working area */ - luaL_checkstack(L, (otop - 1) + LUA_MINSTACK, NULL); + luaL_checkstack(L, (otop - 1) + LUA_MINSTACK, "too many arguments"); /* no table index, yet */ tindex = 0; -- cgit v1.2.3-59-g8ed1b