diff options
-rw-r--r-- | fw/src/usbd_conf.c | 1 |
1 files changed, 1 insertions, 0 deletions
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;
}
|