Commit 9c86aabc authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

include/vlc_arrays.h: Always return a valid ptr in vlc_dictionary_all_keys.

parent d248d3f2
...@@ -384,8 +384,6 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict ) ...@@ -384,8 +384,6 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict )
struct vlc_dictionary_entry_t * p_entry; struct vlc_dictionary_entry_t * p_entry;
char ** ppsz_ret; char ** ppsz_ret;
int i, count = vlc_dictionary_keys_count( p_dict ); int i, count = vlc_dictionary_keys_count( p_dict );
if( !count )
return NULL;
ppsz_ret = malloc(sizeof(char *) * (count + 1)); ppsz_ret = malloc(sizeof(char *) * (count + 1));
assert( ppsz_ret ); assert( ppsz_ret );
......
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