From patchwork Tue May 19 03:04:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3808 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 693C1603D6 for ; Tue, 19 May 2020 05:04:57 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ikXJpSyW"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C9F8A30C for ; Tue, 19 May 2020 05:04:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1589857497; bh=7+Fdi/RHra334OMOBph9d12lRNFsLcQzGoU4clkbas0=; h=From:To:Subject:Date:From; b=ikXJpSyWvYZSPl8nY4JxHSmpx5+kWRGh/m1Jl0BclZ1ZI1bySGr6RMaxmAqIgqhLl JtIORPJnZ4tprnMxxN/Mn2mPEfYNGX8zZw/R3RVOS6i2m8Dk8n/ZempWRslvq640kF JG1yHaiFSB84xkB1x4p+2+EUp6sWPYSDxV+q9p/U= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 19 May 2020 06:04:45 +0300 Message-Id: <20200519030445.15912-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: geometry: Set steps to 0 in default SizeRange constructor 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: , X-List-Received-Date: Tue, 19 May 2020 03:04:57 -0000 The default SizeRange constructor initializes the min and max members, but leaves the hStep and vStep members uninitialized. Fix it. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain Reviewed-by: Niklas Söderlund --- include/libcamera/geometry.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/libcamera/geometry.h b/include/libcamera/geometry.h index 2d364891858c..edda42cf34cc 100644 --- a/include/libcamera/geometry.h +++ b/include/libcamera/geometry.h @@ -71,6 +71,7 @@ class SizeRange { public: SizeRange() + : hStep(0), vStep(0) { }