Changeset de3efb7480be9ded8b74af9961bd5987c8dc3f98
- 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
| r0e39834 |
rde3efb7 |
|
| 768 | 768 | vlc_list_t *p_list; |
|---|
| 769 | 769 | int i; |
|---|
| | 770 | char *psz_module_name; |
|---|
| 770 | 771 | p_list = vlc_list_find( p_this, VLC_OBJECT_MODULE, FIND_ANYWHERE ); |
|---|
| 771 | 772 | for( i = 0 ; i < p_list->i_count; i++) |
|---|
| 772 | 773 | { |
|---|
| 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 ) ) |
|---|
| 776 | 777 | { |
|---|
| 777 | 778 | /* We can release the list, and return yes */ |
|---|