From 6b9e4cfcd32f81d45d1de7feba23fda3005b6e34 Mon Sep 17 00:00:00 2001 From: andyfox-rushc Date: Thu, 30 May 2024 09:34:04 -0700 Subject: [PATCH] initialization of next_ field to null ptr to silence coverity. Signed-off-by: Andy Fox Signed-off-by: andyfox-rushc --- src/dbSta/src/dbNetwork.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dbSta/src/dbNetwork.cc b/src/dbSta/src/dbNetwork.cc index 6bf65a62b73..bdbb260dabe 100644 --- a/src/dbSta/src/dbNetwork.cc +++ b/src/dbSta/src/dbNetwork.cc @@ -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();