]> git.sesse.net Git - vlc/commitdiff
include/vlc_arrays.h: use unlikely()
authorJean-Paul Saman <jpsaman@videolan.org>
Thu, 3 May 2012 11:16:00 +0000 (13:16 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Thu, 3 May 2012 11:16:51 +0000 (13:16 +0200)
include/vlc_arrays.h

index 5142158fd6b1237258d29c66ccbf27dbb3b38650..c06136de984a835d1e9dd0a332d372b8778ec657 100644 (file)
@@ -507,7 +507,7 @@ 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 )
+    if( unlikely(!ppsz_ret) )
         return NULL;
 
     count = 0;