From 11f0c2af435a38a743a64e3f1d097147d75eabf8 Mon Sep 17 00:00:00 2001 From: Peter Bee Date: Wed, 14 Dec 2022 16:52:30 +0800 Subject: [PATCH] system/camera: fix 'is_image' uninitialized Signed-off-by: Peter Bee --- system/nxcamera/nxcamera_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxcamera/nxcamera_main.c b/system/nxcamera/nxcamera_main.c index 5e3d43708..71fcfdd1b 100644 --- a/system/nxcamera/nxcamera_main.c +++ b/system/nxcamera/nxcamera_main.c @@ -266,7 +266,7 @@ static int nxcamera_cmd_output(FAR struct nxcamera_s *pcam, FAR char *parg) int ret; char path[PATH_MAX]; FAR char *ext; - bool isimage; + bool isimage = false; /* First try to open the device directly */