diff options
author | Christian Hopps <chopps@labn.net> | 2025-01-10 13:01:00 +0100 |
---|---|---|
committer | Christian Hopps <chopps@labn.net> | 2025-01-14 05:40:52 +0100 |
commit | c88b48929c60ffe0214949fdf85afefa4038327b (patch) | |
tree | 715c50f1f42a9d6c492ce87a746941eb29ed7966 /mgmtd | |
parent | tests: add datastore notification test (diff) | |
download | frr-c88b48929c60ffe0214949fdf85afefa4038327b.tar.xz frr-c88b48929c60ffe0214949fdf85afefa4038327b.zip |
lib: fix new (incorrect) CLANG SA warnings
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd')
-rw-r--r-- | mgmtd/mgmt_history.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mgmtd/mgmt_history.c b/mgmtd/mgmt_history.c index c97cb7f0f..934748b1f 100644 --- a/mgmtd/mgmt_history.c +++ b/mgmtd/mgmt_history.c @@ -177,6 +177,7 @@ static bool mgmt_history_dump_cmt_record_index(void) return false; } + assert(cnt <= 10); /* silence bad CLANG SA warning */ ret = fwrite(&cmt_info_set, sizeof(struct mgmt_cmt_info_t), cnt, fp); fclose(fp); if (ret != cnt) { |