From: Pierre d'Herbemont Date: Fri, 10 Aug 2007 00:40:04 +0000 (+0000) Subject: include/vlc_arrays.h: Always return a valid ptr in vlc_dictionary_all_keys. X-Git-Tag: 0.9.0-test0~6595 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=9c86aabc0850590c292e453e5b0f1c87214b5e89;p=vlc include/vlc_arrays.h: Always return a valid ptr in vlc_dictionary_all_keys. --- diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h index 8aab58be47..0be9f960af 100644 --- a/include/vlc_arrays.h +++ b/include/vlc_arrays.h @@ -384,8 +384,6 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict ) struct vlc_dictionary_entry_t * p_entry; char ** ppsz_ret; int i, count = vlc_dictionary_keys_count( p_dict ); - if( !count ) - return NULL; ppsz_ret = malloc(sizeof(char *) * (count + 1)); assert( ppsz_ret );