summaryrefslogtreecommitdiffstats
path: root/lib/mgmt_be_client.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2025-01-10 13:01:00 +0100
committerChristian Hopps <chopps@labn.net>2025-01-14 05:40:52 +0100
commitc88b48929c60ffe0214949fdf85afefa4038327b (patch)
tree715c50f1f42a9d6c492ce87a746941eb29ed7966 /lib/mgmt_be_client.c
parenttests: add datastore notification test (diff)
downloadfrr-c88b48929c60ffe0214949fdf85afefa4038327b.tar.xz
frr-c88b48929c60ffe0214949fdf85afefa4038327b.zip
lib: fix new (incorrect) CLANG SA warnings
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'lib/mgmt_be_client.c')
-rw-r--r--lib/mgmt_be_client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c
index a443d83b5..efd5d70a7 100644
--- a/lib/mgmt_be_client.c
+++ b/lib/mgmt_be_client.c
@@ -322,6 +322,7 @@ static int __send_notification(struct mgmt_be_client *client, const char *xpath,
LY_ERR err;
int ret = 0;
+ assert(op != NOTIFY_OP_NOTIFICATION || xpath || tree);
debug_be_client("%s: sending %sYANG %snotification: %s", __func__,
op == NOTIFY_OP_DS_DELETE ? "delete "
: op == NOTIFY_OP_DS_REPLACE ? "replace "