aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2015-04-03 20:30:14 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2015-04-03 20:30:14 +0200
commit4d46c2e86673dfb6d00865017929cf27e0aa22ac (patch)
tree3f856b706c3324b4f94e498231ac5b75d2d15657 /util-src/pposix.c
parentabbf2f169475445d4c54c48616c2d4f0c432ebcd (diff)
downloadprosody-4d46c2e86673dfb6d00865017929cf27e0aa22ac.tar.gz
prosody-4d46c2e86673dfb6d00865017929cf27e0aa22ac.zip
util-src/*.c: Per convention call luaL_error() as argument to return
Diffstat (limited to 'util-src/pposix.c')
-rw-r--r--util-src/pposix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index 577576c4..d797f032 100644
--- a/util-src/pposix.c
+++ b/util-src/pposix.c
@@ -708,7 +708,7 @@ int lc_fallocate(lua_State* L) {
FILE* f = *(FILE**) luaL_checkudata(L, 1, LUA_FILEHANDLE);
if(f == NULL) {
- luaL_error(L, "attempt to use a closed file");
+ return luaL_error(L, "attempt to use a closed file");
}
offset = luaL_checkinteger(L, 2);