From 6c96861ea36f0596fbf4440e457d9366e6855d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Tue, 13 Apr 2021 23:44:29 +0200 Subject: lc-compliance: Initialize the event loop pointer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The event loop pointer loop_ was not initialized. This has no effect on the current code flow but could in the future lead to hard debug problems. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- src/lc-compliance/simple_capture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lc-compliance') diff --git a/src/lc-compliance/simple_capture.cpp b/src/lc-compliance/simple_capture.cpp index 0ff720bf..8f714d3b 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), allocator_(std::make_unique(camera)) + : loop_(nullptr), camera_(camera), + allocator_(std::make_unique(camera)) { } -- cgit v1.2.1