fix: compare unsigned

This commit is contained in:
iceman1001 2019-04-04 22:35:38 +02:00
parent 419eef5a43
commit d127c2294c

View file

@ -332,7 +332,7 @@ unsigned char *emv_pki_sdatl_fill(const struct tlvdb *db, size_t *sdatl_len) {
*sdatl_len = 0;
const struct tlv *sda_tl = tlvdb_get(db, 0x9f4a, NULL);
if (!sda_tl || sda_tl->len <= 0)
if (!sda_tl || sda_tl->len == 0)
return NULL;
for (int i = 0; i < sda_tl->len; i++) {