diff options
author | William Ahern <william+macosx@25thandclement.com> | 2016-01-14 18:30:30 -0800 |
---|---|---|
committer | William Ahern <william+macosx@25thandclement.com> | 2016-01-14 18:30:30 -0800 |
commit | 8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb (patch) | |
tree | d80f74fdbeb13f7b2c6a599b3936642c9241760e | |
parent | 49d0192120c6e3485efd10725ea851b538222e6b (diff) | |
download | luaossl-8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb.tar.gz luaossl-8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb.tar.bz2 luaossl-8d0e1581ce8642f692a64a0e35d60d1c6e6e59eb.zip |
Lua 5.1 doesn't permit NULL msg argument to luaL_checkstack
-rw-r--r-- | src/openssl.c | 4 |
1 files 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; |