# HG changeset patch # User Matthew Wild # Date 1372447003 -3600 # Node ID bf98912a4f5b1397a2f92191f8b8bcbb77dd59ed # Parent 8a0465de172e70e2f7bec04949e2ddbed88bb759 util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed diff -r 8a0465de172e -r bf98912a4f5b util-src/pposix.c --- a/util-src/pposix.c Fri Jun 28 19:34:57 2013 +0200 +++ b/util-src/pposix.c Fri Jun 28 20:16:43 2013 +0100 @@ -500,6 +500,7 @@ if(arguments < 1 || arguments > 3) { lua_pushboolean(L, 0); lua_pushstring(L, "incorrect-arguments"); + return 2; } resource = luaL_checkstring(L, 1);