From c6be3404f8bcb27ded50b92d450d7345cabe8738 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 6 Jul 2021 09:04:37 +0200 Subject: [PATCH] platform/tests: add assertions to nmtstp_link_bridge_normalize_jiffies_time() This is supposed to workaround a coverity warning. --- src/core/platform/tests/test-common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/platform/tests/test-common.c b/src/core/platform/tests/test-common.c index f9a141bc5f..2fc9e836ea 100644 --- a/src/core/platform/tests/test-common.c +++ b/src/core/platform/tests/test-common.c @@ -1427,6 +1427,10 @@ nmtstp_link_bridge_normalize_jiffies_time(const NMPlatformLnkBridge *requested, const NMPlatformLnkBridge *kernel, NMPlatformLnkBridge * dst) { + g_assert(requested); + g_assert(dst); + g_assert(kernel); + if (dst != requested) *dst = *requested;