lc-compliance: Initialize the event loop pointer

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 <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Niklas Söderlund 2021-04-13 23:44:29 +02:00
parent 0373490ef6
commit 6c96861ea3

View file

@ -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))
{
}