From: Michael Niedermayer Date: Mon, 17 Apr 2017 01:23:55 +0000 (+0200) Subject: cmdutils_opencl: Fix read of uninitialized pointer X-Git-Tag: n3.4~1608 X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=commitdiff_plain;h=d712a5cddbfc12e21384f97a291aa64ea7e8005f cmdutils_opencl: Fix read of uninitialized pointer Fixes: CID1396856 Signed-off-by: Michael Niedermayer --- diff --git a/cmdutils_opencl.c b/cmdutils_opencl.c index 655d1c9546..f141d1e243 100644 --- a/cmdutils_opencl.c +++ b/cmdutils_opencl.c @@ -129,7 +129,7 @@ static int64_t run_opencl_bench(AVOpenCLExternalEnv *ext_opencl_env) cl_int status; size_t kernel_len; char *inbuf; - int *mask; + int *mask = NULL; int buf_size = width * height * sizeof(char); int mask_size = sizeof(uint32_t) * 128;