- fixed initialization problem with uninitialized integer values

pull/6/head
Michael Zillgith 9 years ago
parent ebecd5a1ce
commit 03f43b795f

@ -30,7 +30,7 @@ Asn1PrimitiveValue_create(int size)
{ {
Asn1PrimitiveValue* self = (Asn1PrimitiveValue*) GLOBAL_MALLOC(sizeof(Asn1PrimitiveValue)); Asn1PrimitiveValue* self = (Asn1PrimitiveValue*) GLOBAL_MALLOC(sizeof(Asn1PrimitiveValue));
self->size = size; self->size = 1;
self->maxSize = size; self->maxSize = size;
self->octets = (uint8_t*) GLOBAL_CALLOC(1, size); self->octets = (uint8_t*) GLOBAL_CALLOC(1, size);

Loading…
Cancel
Save