diff options
author | jaseg <git@jaseg.net> | 2020-12-24 16:03:29 +0100 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2020-12-24 16:03:29 +0100 |
commit | 410a24c0e893bdd17851c63b698ea723b92ccf62 (patch) | |
tree | c581fc47378470605a6df0d12b186251d4f60863 | |
parent | 735ddef6ae843fa14fdd3921a087eb5e1b807a91 (diff) | |
download | minikbd-410a24c0e893bdd17851c63b698ea723b92ccf62.tar.gz minikbd-410a24c0e893bdd17851c63b698ea723b92ccf62.tar.bz2 minikbd-410a24c0e893bdd17851c63b698ea723b92ccf62.zip |
Fix memory initialization issue
-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;
}
|