[vlc-commits] include/vlc_arrays.h: use unlikely()

Jean-Paul Saman git at videolan.org
Thu May 3 13:17:28 CEST 2012


vlc | branch: master | Jean-Paul Saman <jpsaman at videolan.org> | Thu May  3 13:16:00 2012 +0200| [fd67d7f867bf2a3f948ea6fcd59ba0b1972c6e58] | committer: Jean-Paul Saman

include/vlc_arrays.h: use unlikely()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd67d7f867bf2a3f948ea6fcd59ba0b1972c6e58
---

 include/vlc_arrays.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
index 5142158..c06136d 100644
--- a/include/vlc_arrays.h
+++ b/include/vlc_arrays.h
@@ -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;



More information about the vlc-commits mailing list