From 410a24c0e893bdd17851c63b698ea723b92ccf62 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 24 Dec 2020 16:03:29 +0100 Subject: Fix memory initialization issue --- fw/src/usbd_conf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fw/src') diff --git a/fw/src/usbd_conf.c b/fw/src/usbd_conf.c index 9d82e40..b816bf1 100644 --- a/fw/src/usbd_conf.c +++ b/fw/src/usbd_conf.c @@ -584,6 +584,7 @@ static bool static_hid_handle_allocated = false; void *USBD_static_malloc(uint32_t size) { assert(!static_hid_handle_allocated); + memset(&static_hid_handle, 0, sizeof(static_hid_handle)); static_hid_handle_allocated = true; return &static_hid_handle; } -- cgit