mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
fix possible error
This commit is contained in:
parent
9cd0256a81
commit
915c73bcfc
1 changed files with 3 additions and 0 deletions
|
@ -353,6 +353,9 @@ struct tlvdb *tlvdb_find_path(struct tlvdb *tlvdb, tlv_tag_t tag[]) {
|
||||||
void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
|
void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
|
||||||
{
|
{
|
||||||
while (tlvdb->next) {
|
while (tlvdb->next) {
|
||||||
|
if (tlvdb->next == other)
|
||||||
|
return;
|
||||||
|
|
||||||
tlvdb = tlvdb->next;
|
tlvdb = tlvdb->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue