Diff

util-src/pposix.c @ 3482:e1a4f7b15caf

util.pposix: uname(): Fix to push nil,err in case of error
author Matthew Wild <mwild1@gmail.com>
date Tue, 31 Aug 2010 15:23:41 +0100
parent 3481:72d3c8029178
child 3966:e71c19dac1c7
line wrap: on
line diff
--- a/util-src/pposix.c	Tue Aug 31 15:14:39 2010 +0100
+++ b/util-src/pposix.c	Tue Aug 31 15:23:41 2010 +0100
@@ -559,6 +559,7 @@
 	struct utsname uname_info;
 	if(uname(&uname_info) != 0)
 	{
+		lua_pushnil(L);
 		lua_pushstring(L, strerror(errno));
 		return 2;
 	}