Software /
code /
prosody
Diff
util-src/pposix.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 | 6642:113d321976b6 |
line wrap: on
line diff
--- a/util-src/pposix.c Fri Apr 03 19:31:05 2015 +0100 +++ b/util-src/pposix.c Fri Apr 03 20:30:14 2015 +0200 @@ -708,7 +708,7 @@ 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);