Changeset 755df9f11da318666db6bbdb46323524f20ba8d6
- 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
| r27808e1 |
r755df9f |
|
| 458 | 458 | struct vlc_dictionary_entry_t * p_entry = p_dict->p_entries[i_pos]; |
|---|
| 459 | 459 | |
|---|
| 460 | | if( p_entry && !p_entry->p_next ) |
|---|
| 461 | | return p_entry->p_value; |
|---|
| 462 | | |
|---|
| 463 | 460 | if( !p_entry ) |
|---|
| 464 | 461 | return kVLCDictionaryNotFound; |
|---|
| 465 | 462 | |
|---|
| 466 | | /* Hash collision */ |
|---|
| | 463 | /* Make sure we return the right item. (Hash collision) */ |
|---|
| 467 | 464 | do { |
|---|
| 468 | 465 | if( !strcmp( psz_key, p_entry->psz_key ) ) |
|---|