From 5a53fb4df8f81b02712a18c911a7c5db12a584c3 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Fri, 3 Apr 2015 20:30:14 +0200 Subject: util-src/*.c: Per convention call luaL_error() as argument to return --- util-src/hashes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-src/hashes.c') diff --git a/util-src/hashes.c b/util-src/hashes.c index b027423a..a58a424d 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -170,7 +170,7 @@ static int LscramHi(lua_State* L) { salt2 = malloc(salt_len + 4); if(salt2 == NULL) { - luaL_error(L, "Out of memory in scramHi"); + return luaL_error(L, "Out of memory in scramHi"); } memcpy(salt2, salt, salt_len); -- cgit v1.2.3