diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2015-04-03 20:30:14 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2015-04-03 20:30:14 +0200 |
commit | 5a53fb4df8f81b02712a18c911a7c5db12a584c3 (patch) | |
tree | 3f856b706c3324b4f94e498231ac5b75d2d15657 /util-src/pposix.c | |
parent | 1930dee18906f9fff6cf667b6593ce53eb639e8d (diff) | |
download | prosody-5a53fb4df8f81b02712a18c911a7c5db12a584c3.tar.gz prosody-5a53fb4df8f81b02712a18c911a7c5db12a584c3.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.c | 2 |
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); |