diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2023-06-10 21:37:52 +0100 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2023-06-12 11:02:15 +0100 |
commit | 7534373bf36061f86cb6e184120840586f4c6e26 (patch) | |
tree | 0277831979fd20e29faac098d369a3fda3afbb8c | |
parent | a1d0ff62b62f61167dcbf9192383254c3ae858e5 (diff) |
For debugging purposed vreader_xfr_bytes print all structure
fields using even not initialized fields causing some warnings.
Remove this issue.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
-rw-r--r-- | src/card_7816.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/card_7816.c b/src/card_7816.c index 1452537..377d6d6 100644 --- a/src/card_7816.c +++ b/src/card_7816.c @@ -66,7 +66,7 @@ vcard_response_new_data(const unsigned char *buf, int len) { VCardResponse *new_response; - new_response = g_new(VCardResponse, 1); + new_response = g_new0(VCardResponse, 1); new_response->b_data = g_malloc(len + 2); memcpy(new_response->b_data, buf, len); new_response->b_total_len = len+2; |