From 1e6a559b29dbbafaa90a1035f4a265cde0b5791c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 9 Sep 2005 15:22:46 -0300 Subject: [PATCH] does not set isdst when undefined --- loslib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loslib.c b/loslib.c index ca09f699..caf75543 100644 --- a/loslib.c +++ b/loslib.c @@ -1,5 +1,5 @@ /* -** $Id: loslib.c,v 1.11 2005/08/15 14:12:32 roberto Exp roberto $ +** $Id: loslib.c,v 1.12 2005/08/26 17:36:32 roberto Exp roberto $ ** Standard Operating System library ** See Copyright Notice in lua.h */ @@ -93,6 +93,8 @@ static void setfield (lua_State *L, const char *key, int value) { } static void setboolfield (lua_State *L, const char *key, int value) { + if (value < 0) /* undefined? */ + return; /* does not set field */ lua_pushboolean(L, value); lua_setfield(L, -2, key); }