EFname.c: potential dereference of a null pointer

Theoretical NULL pointer deref, assumes no iteration occurs.
Seems like false positive from incorrect caller use, from
passing suffix==NULL.

SonarCloud
Access to field 'hn_parent' results in a dereference of a null pointer (loaded from variable 'prev')
https://sonarcloud.io/project/issues?open=AZJB167jNGfDNup0RjGu&id=dlmiles_magic
This commit is contained in:
Darryl L. Miles
2024-12-26 13:01:24 -05:00
committed by Tim Edwards
parent db85521449
commit 6a513d01a1
+2 -1
View File
@@ -189,7 +189,8 @@ EFHNConcat(prefix, suffix)
else
firstNew = new;
}
prev->hn_parent = prefix;
if (prev)
prev->hn_parent = prefix;
return firstNew;
}