Commit 84b9f9ce authored by Tristan Matthews's avatar Tristan Matthews

png: split up assignment and comparison

parent 858f38cf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment