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;