From e793fa8d73d4cf4e9fe6c16e4447beb4c6e9df74 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Tue, 19 Feb 2019 21:28:19 +0200 Subject: [PATCH] fix tlvdb_get_uint8 --- client/emv/tlv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/emv/tlv.c b/client/emv/tlv.c index 8d1429640..0daedaf47 100644 --- a/client/emv/tlv.c +++ b/client/emv/tlv.c @@ -551,8 +551,7 @@ struct tlvdb *tlvdb_elm_get_parent(struct tlvdb *tlvdb) bool tlvdb_get_uint8(struct tlvdb *tlvRoot, tlv_tag_t tag, uint8_t *value) { - const struct tlvdb *tlvdb = tlvdb_get(tlvRoot, tag, NULL); - const struct tlv *tlvelm = tlvdb_get_tlv(tlvdb); + const struct tlv *tlvelm = tlvdb_get(tlvRoot, tag, NULL); return tlv_get_uint8(tlvelm, value); }