summaryrefslogtreecommitdiff
path: root/iup/srclua5/il_dial.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/srclua5/il_dial.c')
-rwxr-xr-xiup/srclua5/il_dial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iup/srclua5/il_dial.c b/iup/srclua5/il_dial.c
index 35532cd..242e838 100755
--- a/iup/srclua5/il_dial.c
+++ b/iup/srclua5/il_dial.c
@@ -22,7 +22,7 @@ static int dial_mousemove_cb(Ihandle *self, double p0)
static int Dial(lua_State *L)
{
- Ihandle *ih = IupDial((char *) luaL_checkstring(L, 1));
+ Ihandle *ih = IupDial((char *) luaL_optstring(L, 1, NULL));
iuplua_plugstate(L, ih);
iuplua_pushihandle_raw(L, ih);
return 1;