[vlc-commits] png: split up assignment and comparison
Tristan Matthews
git at videolan.org
Thu Feb 20 15:27:23 CET 2014
vlc | branch: master | Tristan Matthews <le.businessman at gmail.com> | Thu Feb 20 09:09:32 2014 -0500| [84b9f9ceae3ab1d8e98ff1e7f426c4f90c05eebe] | committer: Tristan Matthews
png: split up assignment and comparison
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=84b9f9ceae3ab1d8e98ff1e7f426c4f90c05eebe
---
modules/codec/png.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/codec/png.c b/modules/codec/png.c
index 6a20b82..4381f47 100644
--- a/modules/codec/png.c
+++ b/modules/codec/png.c
@@ -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;
More information about the vlc-commits
mailing list