From c68b99750ecc1b3792ca3d11cdba81b34670cf80 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 24 Aug 2023 18:26:33 +0200 Subject: [PATCH] timer: agt: fix uninitialized memory This completes be99a22 --- cores/arduino/FspTimer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cores/arduino/FspTimer.h b/cores/arduino/FspTimer.h index 1fe12c404..031651eee 100644 --- a/cores/arduino/FspTimer.h +++ b/cores/arduino/FspTimer.h @@ -76,10 +76,11 @@ class AGTimer { ext_cfg.trigger_edge = AGT_TRIGGER_EDGE_RISING; cfg.p_extend = &ext_cfg; + + memset(&ctrl, 0, sizeof(agt_instance_ctrl_t)); } agt_extended_cfg_t ext_cfg; agt_instance_ctrl_t ctrl; - };