Commit 70d0ef7c91a6852f58b983a2f3c029d80e67e0d8

Martin Mitas 2020-08-05T09:18:41

Avoid simple {0} to initialize a more complex object. Should fix #125.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/md4c.c b/src/md4c.c
index 4aa5b89..4ecc5f7 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -1577,8 +1577,8 @@ md_link_label_cmp(const CHAR* a_label, SZ a_size, const CHAR* b_label, SZ b_size
     OFF b_off;
     int a_reached_end = FALSE;
     int b_reached_end = FALSE;
-    MD_UNICODE_FOLD_INFO a_fi = { 0 };
-    MD_UNICODE_FOLD_INFO b_fi = { 0 };
+    MD_UNICODE_FOLD_INFO a_fi = { { 0 }, 0 };
+    MD_UNICODE_FOLD_INFO b_fi = { { 0 }, 0 };
     OFF a_fi_off = 0;
     OFF b_fi_off = 0;
     int cmp;