summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-06-02 21:09:29 +0200
committerDonald Sharp <sharpd@nvidia.com>2023-06-05 13:57:49 +0200
commit60dc2992c949187e8237e85875bf8a3fba141b7f (patch)
tree1776476bee6e37f4b36493a343e1603a3c64eb44
parentbgpd: entry->any is never true (diff)
downloadfrr-60dc2992c949187e8237e85875bf8a3fba141b7f.tar.xz
frr-60dc2992c949187e8237e85875bf8a3fba141b7f.zip
mgmtd: Fix up some coverity issues
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
-rw-r--r--mgmtd/mgmt_txn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c
index 3d818cb4c..a666422b7 100644
--- a/mgmtd/mgmt_txn.c
+++ b/mgmtd/mgmt_txn.c
@@ -1122,7 +1122,6 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req,
}
free(xpath);
- xpath = NULL;
}
cmtcfg_req->cmt_stats->last_batch_cnt = num_chgs;
@@ -2542,7 +2541,7 @@ int mgmt_txn_notify_be_cfgdata_reply(
{
struct mgmt_txn_ctx *txn;
struct mgmt_txn_be_cfg_batch *cfg_btch;
- struct mgmt_commit_cfg_req *cmtcfg_req = NULL;
+ struct mgmt_commit_cfg_req *cmtcfg_req;
txn = mgmt_txn_id2ctx(txn_id);
if (!txn || txn->type != MGMTD_TXN_TYPE_CONFIG)