do not extern 'interp' from command.c
[fw/openocd] / src / helper / command.c
index 319f0810d6169dbfe3ec9cef67279675cd0cf749..5df4a4536f5293c11ac155b8abc9eb4c6b8b9e2f 100644 (file)
@@ -1257,7 +1257,7 @@ struct command_context* command_init(const char *startup_tcl)
 #if !BUILD_ECOSBOARD
        Jim_InitEmbedded();
        /* Create an interpreter */
-       interp = Jim_CreateInterp();
+       interp = context->interp = Jim_CreateInterp();
        /* Add all the Jim core commands */
        Jim_RegisterCoreCommands(interp);
 #endif