Changeset 755df9f11da318666db6bbdb46323524f20ba8d6

Show
Ignore:
Timestamp:
02/13/08 20:06:43 (7 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1202929603 +0000
git-parent:

[6fba236cbc4be069c84a70d81c0cbb8f46e9552b]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1202929603 +0000
Message:

vlc_arrays.h: Make sure we return the right value associated with a given key.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_arrays.h

    r27808e1 r755df9f  
    458458    struct vlc_dictionary_entry_t * p_entry = p_dict->p_entries[i_pos]; 
    459459 
    460     if( p_entry && !p_entry->p_next ) 
    461         return p_entry->p_value; 
    462  
    463460    if( !p_entry ) 
    464461        return kVLCDictionaryNotFound; 
    465462 
    466     /* Hash collision */ 
     463    /* Make sure we return the right item. (Hash collision) */ 
    467464    do { 
    468465        if( !strcmp( psz_key, p_entry->psz_key ) )