Commit 0dd0a8d4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

vlc_arrays.h: check malloc return value.

parent af9d16c5
......@@ -507,6 +507,8 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict )
int i, count = vlc_dictionary_keys_count( p_dict );
ppsz_ret = (char**)malloc(sizeof(char *) * (count + 1));
if( !ppsz_ret )
return NULL;
count = 0;
for( i = 0; i < p_dict->i_size; i++ )
......
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