From fe49375ba9d0917992ade14a35ccd576de7a588d Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Wed, 15 May 2024 13:56:37 -0700 Subject: [PATCH] Initialize mAddExtraTestVendorConfigs to false. If we do not init, the initial value is undefined. Test: Local run Bug: 340947823 Flag: EXEMPT bugfix Change-Id: I18a3688a446dd969545e1fc2cb5f63210c3c02cd Merged-In: I18a3688a446dd969545e1fc2cb5f63210c3c02cd --- .../aidl/impl/fake_impl/hardware/include/FakeVehicleHardware.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automotive/vehicle/aidl/impl/fake_impl/hardware/include/FakeVehicleHardware.h b/automotive/vehicle/aidl/impl/fake_impl/hardware/include/FakeVehicleHardware.h index 8cd92b3b89..d986b419f2 100644 --- a/automotive/vehicle/aidl/impl/fake_impl/hardware/include/FakeVehicleHardware.h +++ b/automotive/vehicle/aidl/impl/fake_impl/hardware/include/FakeVehicleHardware.h @@ -182,7 +182,7 @@ class FakeVehicleHardware : public IVehicleHardware { std::unordered_set hvacPowerDependentProps; const bool mForceOverride; - bool mAddExtraTestVendorConfigs; + bool mAddExtraTestVendorConfigs = false; // Only used during initialization. JsonConfigLoader mLoader;