From patchwork Tue Apr 13 21:52:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 11924 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 3F84FBD224 for ; Tue, 13 Apr 2021 21:53:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 0BEF4687D6; Tue, 13 Apr 2021 23:53:05 +0200 (CEST) Received: from bin-mail-out-06.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 9A38D602D1 for ; Tue, 13 Apr 2021 23:53:03 +0200 (CEST) X-Halon-ID: 9bf08c9c-9ca2-11eb-a9ab-0050569116f7 Authorized-sender: niklas.soderlund@fsdn.se Received: from bismarck.berto.se (p54ac5521.dip0.t-ipconnect.de [84.172.85.33]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id 9bf08c9c-9ca2-11eb-a9ab-0050569116f7; Tue, 13 Apr 2021 23:53:02 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: libcamera-devel@lists.libcamera.org Date: Tue, 13 Apr 2021 23:52:56 +0200 Message-Id: <20210413215256.2734772-1-niklas.soderlund@ragnatech.se> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] lc-compliance: Initialize the event loop pointer X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 Reviewed-by: Laurent Pinchart --- 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), allocator_(std::make_unique(camera)) + : loop_(nullptr), camera_(camera), + allocator_(std::make_unique(camera)) { }