Changeset 850


Ignore:
Timestamp:
12/03/09 03:24:54 (3 years ago)
Author:
reyalp
Message:

fix http://chdk.kernreaktor.org/mantis/view.php?id=326 ubasic crash after running lua, introduced in changeset 815

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/kbd.c

    r848 r850  
    228228} 
    229229 
    230 void lua_script_reset(lua_State *L){ 
     230void lua_script_reset() 
     231{ 
    231232    lua_close( L ); 
    232233    L = 0; 
     
    244245  if( luaL_loadstring( Lt, script ) != 0 ) { 
    245246    script_console_add_line( lua_tostring( Lt, -1 ) ); 
    246     lua_script_reset( L ); 
     247    lua_script_reset(); 
    247248    return 0; 
    248249  } 
     
    322323    script_print_screen_end(); 
    323324    if( L ) { 
    324       lua_script_reset( L ); 
     325      lua_script_reset(); 
    325326    } 
    326327    else { 
     
    447448                script_console_add_line( lua_tostring( Lt, -1 ) ); 
    448449                if(conf.debug_lua_restart_on_error){ 
    449                     lua_script_reset( L ); 
     450                    lua_script_reset(); 
    450451                    script_start(0); 
    451452                } else { 
     
    690691        } 
    691692 
    692         if (state_kbd_script_run)  
     693        if (state_kbd_script_run) 
    693694            process_script(); 
    694695        else 
Note: See TracChangeset for help on using the changeset viewer.