]> git.sesse.net Git - vlc/commitdiff
include/vlc_arrays.h: Always return a valid ptr in vlc_dictionary_all_keys.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 10 Aug 2007 00:40:04 +0000 (00:40 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Fri, 10 Aug 2007 00:40:04 +0000 (00:40 +0000)
include/vlc_arrays.h

index 8aab58be477fe3d14b526c2c578ca3732da76d89..0be9f960afb6b655622e9a5add4d568518452a0f 100644 (file)
@@ -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 );