[RFC PATCH v1 01/12] apps: lc-compliance: Initialize `CameraManager` pointer in `Environment`
Barnabás Pőcze
pobrn at protonmail.com
Fri Dec 20 16:08:08 CET 2024
Do not leave it unitialized.
Signed-off-by: Barnabás Pőcze <pobrn at protonmail.com>
---
src/apps/lc-compliance/environment.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/apps/lc-compliance/environment.h b/src/apps/lc-compliance/environment.h
index 543e5372f..834c722ef 100644
--- a/src/apps/lc-compliance/environment.h
+++ b/src/apps/lc-compliance/environment.h
@@ -23,5 +23,5 @@ private:
Environment() = default;
std::string cameraId_;
- libcamera::CameraManager *cm_;
+ libcamera::CameraManager *cm_ = nullptr;
};
--
2.47.1
More information about the libcamera-devel
mailing list