Message ID | 20210413215256.2734772-1-niklas.soderlund@ragnatech.se |
---|---|
State | Accepted |
Commit | 6c96861ea36f0596fbf4440e457d9366e6855d19 |
Headers | show |
Series |
|
Related | show |
Hi Niklas, Thank you for the patch. On Tue, Apr 13, 2021 at 11:52:56PM +0200, Niklas Söderlund wrote: > The event loop pointer loop_ was not initialized. This have no effect on s/have/has/ > 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> > --- > 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)) > { > } >
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)) { }
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@ragnatech.se> --- src/lc-compliance/simple_capture.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)