projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46a18dc
)
util.pposix: uname(): Fix to push nil,err in case of error
author
Matthew Wild
<mwild1@gmail.com>
Tue, 31 Aug 2010 14:23:41 +0000
(15:23 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Tue, 31 Aug 2010 14:23:41 +0000
(15:23 +0100)
util-src/pposix.c
patch
|
blob
|
history
diff --git
a/util-src/pposix.c
b/util-src/pposix.c
index c5ebc4b4c2e381291a256e6b0a2085b5bcd3b3a1..4ff84bde2440f4aed4aac6b5f12dfbaddf712864 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;
}