[libcamera-devel] [PATCH] libcamera: geometry: Set steps to 0 in default SizeRange constructor
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Tue May 19 05:04:45 CEST 2020
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 <laurent.pinchart at ideasonboard.com>
---
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)
{
}
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list