summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLunar Journal <root@spacehen.io>2023-09-09 19:26:03 +0200
committerGitHub <noreply@github.com>2023-09-09 19:26:03 +0200
commita3655fbccb17dbada53201bbcb22d641f7e5610b (patch)
treedf0f21de1d7ea273d11875ec34a7a9f82dfefde6
parent29568fd85c616fa7fff9da3f6fb9bf6d783d8809 (diff)
downloadcdl86-a3655fbccb17dbada53201bbcb22d641f7e5610b.tar.gz
cdl86-a3655fbccb17dbada53201bbcb22d641f7e5610b.zip
cdl86: core: update initializers
Use explicit syntax.
-rw-r--r--cdl.c4
1 files changed, 2 insertions, 2 deletions
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)