]> git.sesse.net Git - vlc/commitdiff
png: split up assignment and comparison
authorTristan Matthews <le.businessman@gmail.com>
Thu, 20 Feb 2014 14:09:32 +0000 (09:09 -0500)
committerTristan Matthews <le.businessman@gmail.com>
Thu, 20 Feb 2014 14:09:32 +0000 (09:09 -0500)
modules/codec/png.c

index 6a20b823d3091bdf42ccaae31eca2008de3b6b86..4381f4797ab57c4e7360da7ae46b63e46b29ffce 100644 (file)
@@ -116,7 +116,8 @@ static int OpenDecoder( vlc_object_t *p_this )
     }
 
     /* Allocate the memory needed to store the decoder's structure */
-    if( ( p_dec->p_sys = malloc(sizeof(decoder_sys_t)) ) == NULL )
+    p_dec->p_sys = malloc( sizeof(decoder_sys_t) );
+    if( p_dec->p_sys == NULL )
         return VLC_ENOMEM;
 
     p_dec->p_sys->p_obj = p_this;