Commit f8cac3e1 authored by Clément Stenac's avatar Clément Stenac

Don't check the full string

parent 4efb2911
...@@ -136,8 +136,9 @@ int vlc_HashLookup( hashtable_entry_t *p_array, int i_count, ...@@ -136,8 +136,9 @@ int vlc_HashLookup( hashtable_entry_t *p_array, int i_count,
return -1; return -1;
} }
/* Hash found, entry found */ /* Hash found, let's check it looks like the entry
if( !strcmp( psz_name, p_array[i_pos].psz_name ) ) * We don't check the whole entry, this could lead to bad surprises :( */
if( psz_name[0] == p_array[i].psz_name[0] )
{ {
return i_pos; return i_pos;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment