From fb020df877a6d2ce68085a28715b483bcd8ade06 Mon Sep 17 00:00:00 2001 From: Saxon Date: Wed, 29 Jan 2020 10:26:24 +1030 Subject: [PATCH] codec/h264/h264dec/fuzz/helpers.c: checking if r or br == NULL --- codec/h264/h264dec/fuzz/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/h264/h264dec/fuzz/helpers.c b/codec/h264/h264dec/fuzz/helpers.c index 25a8d203..2b9bf6dc 100644 --- a/codec/h264/h264dec/fuzz/helpers.c +++ b/codec/h264/h264dec/fuzz/helpers.c @@ -30,7 +30,7 @@ typedef struct Reader Reader; BitReader* new_BitReader(char* d, int l){ Reader* r = (Reader*)malloc(sizeof(Reader)); - if(!r){ + if(r == NULL){ return NULL; } r->data = d; @@ -39,7 +39,7 @@ BitReader* new_BitReader(char* d, int l){ r->err = 0; BitReader* br = (BitReader*)malloc(sizeof(BitReader)); - if(!br){ + if(br == NULL){ return NULL; } br->r = r;