Software /
code /
prosody
Changeset
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 |
parents | 9151:fee3933ff346 |
children | 9153:26c5a4a14905 |
files | util-src/pposix.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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);