diff --git a/src/task.c b/src/task.c index 83a6fff1..8b564b41 100644 --- a/src/task.c +++ b/src/task.c @@ -2138,11 +2138,12 @@ static JSValue _tf_task_setTimeout(JSContext* context, JSValueConst this_val, in static JSValue _tf_task_pokeSandbox(JSContext* context, JSValueConst this_val, int argc, JSValueConst* argv) { + int result = 0; #if TARGET_OS_IPHONE tf_printf("Not sure what we can try to poke on iOS.\n"); #else tf_printf("Poking sandbox.\n"); - int result = system("pwd"); + result = system("pwd"); tf_printf("Sandbox poked.\n"); #endif return JS_NewInt32(context, WEXITSTATUS(result));