Diff

util-src/hashes.c @ 6620:50eaefeec013

util-src/*.c: Per convention call luaL_error() as argument to return
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 03 Apr 2015 20:30:14 +0200
parent 6615:8e4572a642cb
child 6789:6b180e77c97a
line wrap: on
line diff
--- a/util-src/hashes.c	Fri Apr 03 19:31:05 2015 +0100
+++ b/util-src/hashes.c	Fri Apr 03 20:30:14 2015 +0200
@@ -170,7 +170,7 @@
 	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);