Commit dec914039d17129db1a574c51438366c55fde16b

Thomas de Grivel 2024-08-31T09:35:11

explicit_bzero

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libkc3/tag.c b/libkc3/tag.c
index e604026..e0059a7 100644
--- a/libkc3/tag.c
+++ b/libkc3/tag.c
@@ -599,7 +599,7 @@ s_tag * tag_init_var (s_tag *tag, const s_sym *type)
 s_tag * tag_init_void (s_tag *tag)
 {
   assert(tag);
-  memset(tag, 0, sizeof(s_tag));
+  explicit_bzero(tag, sizeof(s_tag));
   return tag;
 }