Changeset 6f5ee98782b887d86e40e04b9b88ed0b38ba117e

Show
Ignore:
Timestamp:
27/06/08 13:49:59 (5 months ago)
Author:
Antoine Cellerier <dionoea@videolan.org>
git-committer:
Antoine Cellerier <dionoea@videolan.org> 1214567399 +0200
git-parent:

[9ad990ac8df8a3a29ef20f9771d59633789c3146]

git-author:
Antoine Cellerier <dionoea@videolan.org> 1214566150 +0200
Message:

Don't segfault when looking for art with the lua scripts. Thanks to ILEoo for spoting the bug.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/lua/meta.c

    r95addd5 r6f5ee98  
    5959 * Init lua 
    6060 *****************************************************************************/ 
     61static luaL_Reg p_reg[] = { { NULL, NULL } }; 
     62 
    6163static lua_State * vlclua_meta_init( vlc_object_t *p_this, input_item_t * p_item ) 
    6264{ 
     
    7274    luaL_openlibs( L ); /* XXX: Don't open all the libs? */ 
    7375 
    74     luaL_register( L, "vlc", NULL /* FIXME ? */ ); 
     76    luaL_register( L, "vlc", p_reg ); 
    7577 
    7678    luaopen_msg( L );