X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;ds=sidebyside;f=util-src%2Fpposix.c;h=ffd2128835ddb9124cc8fb858a23be23e8e2734a;hb=4be16eb74842d95b0de34c989c7653278c224e28;hp=c5ebc4b4c2e381291a256e6b0a2085b5bcd3b3a1;hpb=46a18dc4babd7a31c81a85be922a925035b5fa08;p=prosody.git diff --git a/util-src/pposix.c b/util-src/pposix.c index c5ebc4b4..ffd21288 100644 --- a/util-src/pposix.c +++ b/util-src/pposix.c @@ -559,6 +559,7 @@ int lc_uname(lua_State* L) struct utsname uname_info; if(uname(&uname_info) != 0) { + lua_pushnil(L); lua_pushstring(L, strerror(errno)); return 2; } @@ -619,4 +620,4 @@ int luaopen_util_pposix(lua_State *L) lua_setfield(L, -2, "_VERSION"); return 1; -}; +}