Skip to content

Commit

Permalink
initialization of next_ field to null ptr to silence coverity. Signed…
Browse files Browse the repository at this point in the history
…-off-by: Andy Fox <[email protected]>

Signed-off-by: andyfox-rushc <[email protected]>
  • Loading branch information
andyfox-rushc committed May 30, 2024
1 parent 2583962 commit 6b9e4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbSta/src/dbNetwork.cc
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,10 @@ DbNetPinIterator::DbNetPinIterator(const Net* net, const dbNetwork* network)
dbModNet* modnet = nullptr;
network_ = network;
network->staToDb(net, dnet, modnet);
next_ = nullptr;
if (dnet) {
iitr_ = dnet->getITerms().begin();
iitr_end_ = dnet->getITerms().end();
next_ = nullptr;
}
if (modnet) {
iitr_ = modnet->getITerms().begin();
Expand Down

0 comments on commit 6b9e4cf

Please sign in to comment.