projects
/
prosody.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mod_storage_sql: Fix commit c806a599224a for compatibility with non-MySQL databases...
[prosody.git]
/
util-src
/
pposix.c
diff --git
a/util-src/pposix.c
b/util-src/pposix.c
index c5ebc4b4c2e381291a256e6b0a2085b5bcd3b3a1..ffd2128835ddb9124cc8fb858a23be23e8e2734a 100644
(file)
--- 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;
-}
;
+}