[libcamera-devel] [PATCH 4/4] ipa: raspberrypi: fix use of uninitialized fields

Tomi Valkeinen tomi.valkeinen at iki.fi
Wed Oct 7 13:07:43 CEST 2020


These fields are not initialized, but are used. Set them to 0.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen at iki.fi>
---
 src/ipa/raspberrypi/controller/rpi/agc.hpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ipa/raspberrypi/controller/rpi/agc.hpp b/src/ipa/raspberrypi/controller/rpi/agc.hpp
index ba7ae09..23374d5 100644
--- a/src/ipa/raspberrypi/controller/rpi/agc.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/agc.hpp
@@ -116,9 +116,9 @@ private:
 	std::string exposure_mode_name_;
 	std::string constraint_mode_name_;
 	double ev_;
-	double flicker_period_;
-	double fixed_shutter_;
-	double fixed_analogue_gain_;
+	double flicker_period_ = 0;
+	double fixed_shutter_ = 0;
+	double fixed_analogue_gain_ = 0;
 };
 
 } // namespace RPiController
-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki



More information about the libcamera-devel mailing list