fix possible error
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user