aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
Diffstat (limited to 'util-src')
-rw-r--r--util-src/pposix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util-src/pposix.c b/util-src/pposix.c
index c5ebc4b4..4ff84bde 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;
}