Changeset

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
parents 3481:72d3c8029178
children 3483:443139c396c5
files util-src/pposix.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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;
 	}