Changeset de3efb7480be9ded8b74af9961bd5987c8dc3f98

Show
Ignore:
Timestamp:
04/06/07 17:19:10 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1175872750 +0000
git-parent:

[46cd2cb94381035b296ee65430f6eacae920896d]

git-author:
Rafaël Carré <funman@videolan.org> 1175872750 +0000
Message:

adds sanity check to module_Exists()

Files:

Legend:

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

    r0e39834 rde3efb7  
    768768    vlc_list_t *p_list; 
    769769    int i; 
     770    char *psz_module_name; 
    770771    p_list = vlc_list_find( p_this, VLC_OBJECT_MODULE, FIND_ANYWHERE ); 
    771772    for( i = 0 ; i < p_list->i_count; i++) 
    772773    { 
    773         if (!strcmp( 
    774               ((module_t *) p_list->p_values[i].p_object)->psz_shortname , 
    775               psz_name ) ) 
     774        psz_module_name = 
     775            ((module_t *) p_list->p_values[i].p_object)->psz_shortname; 
     776        if ( psz_module_name && !strcmp( psz_module_name, psz_name ) ) 
    776777        { 
    777778            /* We can release the list, and return yes */