[libcamera-devel] [PATCH] lc-compliance: Initialize the event loop pointer
Niklas Söderlund
niklas.soderlund at ragnatech.se
Tue Apr 13 23:52:56 CEST 2021
The event loop pointer loop_ was not initialized. This have no effect on
the current code flow but could in the future lead to hard debug
problems.
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
---
src/lc-compliance/simple_capture.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lc-compliance/simple_capture.cpp b/src/lc-compliance/simple_capture.cpp
index 0ff720bfd0052e45..8f714d3b5e73e28e 100644
--- a/src/lc-compliance/simple_capture.cpp
+++ b/src/lc-compliance/simple_capture.cpp
@@ -10,7 +10,8 @@
using namespace libcamera;
SimpleCapture::SimpleCapture(std::shared_ptr<Camera> camera)
- : camera_(camera), allocator_(std::make_unique<FrameBufferAllocator>(camera))
+ : loop_(nullptr), camera_(camera),
+ allocator_(std::make_unique<FrameBufferAllocator>(camera))
{
}
--
2.31.1
More information about the libcamera-devel
mailing list