aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jim-eventloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim-eventloop.c b/jim-eventloop.c
index b9e0e97..84cba71 100644
--- a/jim-eventloop.c
+++ b/jim-eventloop.c
@@ -604,7 +604,7 @@ static int JimELVwaitCommand(Jim_Interp *interp, int argc, Jim_Obj *const *argv)
break;
}
Jim_Obj *currValue;
- currValue = Jim_GetGlobalVariable(interp, argv[1], JIM_NONE);
+ currValue = Jim_GetGlobalVariable(interp, argv[1 + signal], JIM_NONE);
/* Stop the loop if the vwait-ed variable changed value,
* or if was unset and now is set (or the contrary)
* or if a signal was caught