Merge 0.8->trunk
[prosody.git] / util-src / pposix.c
index c5ebc4b4c2e381291a256e6b0a2085b5bcd3b3a1..ffd2128835ddb9124cc8fb858a23be23e8e2734a 100644 (file)
@@ -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;
-};
+}