Diff

util-src/pposix.c @ 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
parent 5451:941ad88db8f3
child 5720:449399a7e136
child 5812:57ebf93ec720
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);