summaryrefslogtreecommitdiff
path: root/ext/tk/stubs.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/stubs.c')
-rw-r--r--ext/tk/stubs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/stubs.c b/ext/tk/stubs.c
index 050333cf63..3fb3e5f2f3 100644
--- a/ext/tk/stubs.c
+++ b/ext/tk/stubs.c
@@ -237,14 +237,14 @@ ruby_tcl_create_ip_and_stubs_init(st)
return (Tcl_Interp*)NULL;
}
- _nativethread_consistency_check(tcl_ip);
-
if (!Tcl_InitStubs(tcl_ip, "8.1", 0)) {
if (st) *st = FAIL_Tcl_InitStubs;
(*p_Tcl_DeleteInterp)(tcl_ip);
return (Tcl_Interp*)NULL;
}
+ _nativethread_consistency_check(tcl_ip);
+
return tcl_ip;
}
}