removed useless check for non-null array

This commit is contained in:
Frank Morgner 2015-02-03 00:31:55 +01:00
parent ac4da89d0d
commit 5e3d54186a
1 changed files with 2 additions and 4 deletions

View File

@ -941,10 +941,8 @@ awp_encode_cert_info(struct sc_pkcs15_card *p15card, struct sc_pkcs15_object *ob
sc_pkcs15_print_id(&cert_info->id), obj->content.value, obj->content.len);
memset(&pubkey, 0, sizeof(pubkey));
if (obj->label) {
ci->label.value = (unsigned char *)strdup(obj->label);
ci->label.len = strlen(obj->label);
}
ci->label.value = (unsigned char *)strdup(obj->label);
ci->label.len = strlen(obj->label);
mem = BIO_new_mem_buf(obj->content.value, obj->content.len);
if (!mem)