From f96c2b6dc2323835f88cd3a81500a68adc5619ee Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 19 May 2021 15:53:16 +0300 Subject: [PATCH] lib: fix coverity warnings CID 1504894 Signed-off-by: Igor Ryzhov --- lib/northbound.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/northbound.c b/lib/northbound.c index 3634fed04f..6988fd9a9c 100644 --- a/lib/northbound.c +++ b/lib/northbound.c @@ -599,6 +599,7 @@ static void nb_config_diff(const struct nb_config *config1, * the diff tree. */ target = yang_dnode_get(config2->dnode, path); + assert(target); nb_config_diff_created(target, &seq, changes); /* Skip rest of sub-tree, move to next sibling @@ -607,6 +608,7 @@ static void nb_config_diff(const struct nb_config *config1, break; case 'd': /* delete */ target = yang_dnode_get(config1->dnode, path); + assert(target); nb_config_diff_deleted(target, &seq, changes); /* Skip rest of sub-tree, move to next sibling -- 2.39.5