EFbuild.c:1330 ASSERT(nn) added

ASSERT(nn) added to indicate programming intention.

SonarCloud
Access to field 'efnn_node' results in a dereference of a null pointer (loaded from variable 'nn')
https://sonarcloud.io/project/issues?open=AZJB168PNGfDNup0RjKF&id=dlmiles_magic
This commit is contained in:
Darryl L. Miles 2024-10-04 20:09:48 +01:00 committed by Tim Edwards
parent fcb8bf57c6
commit db85521449
1 changed files with 1 additions and 0 deletions

View File

@ -1328,6 +1328,7 @@ efBuildDevNode(def, name, isSubsNode)
(char *) NULL, (char **) NULL, 0); (char *) NULL, (char **) NULL, 0);
nn = (EFNodeName *) HashGetValue(he); nn = (EFNodeName *) HashGetValue(he);
ASSERT(nn, "nn");
isNewNode = TRUE; isNewNode = TRUE;
} }
if (isSubsNode || (nn->efnn_node->efnode_flags & EF_GLOB_SUBS_NODE)) if (isSubsNode || (nn->efnn_node->efnode_flags & EF_GLOB_SUBS_NODE))