Software /
code /
prosody
Diff
util-src/pposix.c @ 9152:bad9e8b43f50
pposix: Generate an error when a passed string isn’t "unlimited".
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Wed, 08 Aug 2018 09:28:42 +0200 |
parent | 9151:fee3933ff346 |
child | 9276:3a13c246b877 |
line wrap: on
line diff
--- a/util-src/pposix.c Wed Aug 08 09:28:04 2018 +0200 +++ b/util-src/pposix.c Wed Aug 08 09:28:42 2018 +0200 @@ -552,6 +552,7 @@ if(strcmp(lua_tostring(L, idx), "unlimited") == 0) { return RLIM_INFINITY; } + return luaL_argerror(L, idx, "unexpected type"); case LUA_TNUMBER: return lua_tointeger(L, idx);