drivers: usb: nrfx: initialize local struct to zero
Initialize a local struct variable to zero, to suppress un-initialized variable error. Fixes #14422. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
239e397167
commit
6a546d1938
1 changed files with 1 additions and 1 deletions
|
@ -1115,7 +1115,7 @@ static void usbd_event_transfer_data(nrfx_usbd_evt_t const *const p_event)
|
|||
static void usbd_event_handler(nrfx_usbd_evt_t const *const p_event)
|
||||
{
|
||||
struct nrf_usbd_ep_ctx *ep_ctx;
|
||||
struct usbd_event evt;
|
||||
struct usbd_event evt = {0};
|
||||
bool put_evt = false;
|
||||
|
||||
switch (p_event->type) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue