From a3655fbccb17dbada53201bbcb22d641f7e5610b Mon Sep 17 00:00:00 2001 From: Lunar Journal Date: Sat, 9 Sep 2023 19:26:03 +0200 Subject: cdl86: core: update initializers Use explicit syntax. --- cdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cdl.c') diff --git a/cdl.c b/cdl.c index 314223f..fe5303b 100644 --- a/cdl.c +++ b/cdl.c @@ -540,7 +540,7 @@ struct cdl_jmp_patch cdl_jmp_attach( uint8_t* target_origin = NULL; uint8_t* plt_got = NULL; uint8_t* bytes_orig = NULL; - struct cdl_jmp_patch jmp_patch = {}; + struct cdl_jmp_patch jmp_patch = {0}; target_origin = (uint8_t*)*target; /* Check if target pointer is PLT entry. */ @@ -638,7 +638,7 @@ struct cdl_swbp_patch cdl_swbp_attach( uint8_t* bytes_orig = NULL; uint8_t* target_origin = NULL; uint8_t* plt_got = NULL; - struct cdl_swbp_patch swbp_patch = {}; + struct cdl_swbp_patch swbp_patch = {0}; /* Initialise cdl signal handler. */ if (!cdl_swbp_init) -- cgit v1.2.3-70-g09d2