aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ltests.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index 07bde473..68306617 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.121 2011/07/02 15:59:17 roberto Exp roberto $ 2** $Id: ltests.c,v 2.122 2011/08/23 17:24:34 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -595,7 +595,10 @@ static int mem_query (lua_State *L) {
595 595
596 596
597static int settrick (lua_State *L) { 597static int settrick (lua_State *L) {
598 l_Trick = gcvalue(obj_at(L, 1)); 598 if (ttisnil(obj_at(L, 1)))
599 l_Trick = NULL;
600 else
601 l_Trick = gcvalue(obj_at(L, 1));
599 return 0; 602 return 0;
600} 603}
601 604