Changeset

5717:bf98912a4f5b

util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed
author Matthew Wild <mwild1@gmail.com>
date Fri, 28 Jun 2013 20:16:43 +0100
parents 5716:8a0465de172e
children 5718:16db80c2b74d 5721:579c51cbc12c
files util-src/pposix.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);