summaryrefslogtreecommitdiff
path: root/iup/srclua5/il_frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srclua5/il_frame.c')
-rwxr-xr-xiup/srclua5/il_frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iup/srclua5/il_frame.c b/iup/srclua5/il_frame.c
index 7bf41db..cfc5314 100755
--- a/iup/srclua5/il_frame.c
+++ b/iup/srclua5/il_frame.c
@@ -14,7 +14,7 @@
static int Frame(lua_State *L)
{
- Ihandle *ih = IupFrame(iuplua_checkihandle(L, 1));
+ Ihandle *ih = IupFrame(iuplua_checkihandleornil(L, 1));
iuplua_plugstate(L, ih);
iuplua_pushihandle_raw(L, ih);
return 1;