diff options
Diffstat (limited to 'lib/minitasn1/structure.c')
-rw-r--r-- | lib/minitasn1/structure.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/minitasn1/structure.c b/lib/minitasn1/structure.c index 70bc17246f..4b2ee5099e 100644 --- a/lib/minitasn1/structure.c +++ b/lib/minitasn1/structure.c @@ -51,16 +51,11 @@ _asn1_add_node_only (unsigned int type) { node_asn *punt; - punt = (node_asn *) _asn1_malloc (sizeof (node_asn)); + punt = (node_asn *) _asn1_calloc (1, sizeof (node_asn)); if (punt == NULL) return NULL; - punt->left = NULL; - punt->name = NULL; punt->type = type; - punt->value = NULL; - punt->down = NULL; - punt->right = NULL; return punt; } |