summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/card_7816.c2
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;