From 178e7a0fe10ae0f5b46c40f5250c9637cfb100c7 Mon Sep 17 00:00:00 2001 From: Yelin Jeong Date: Tue, 5 Nov 2024 12:42:45 +0900 Subject: [PATCH] [CodeClean] fix svace issue This patch fixes pointer dereferenced after null. WGID:13147986 Signed-off-by: Yelin Jeong --- tests/nnstreamer_watchdog/unittest_watchdog.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/nnstreamer_watchdog/unittest_watchdog.cc b/tests/nnstreamer_watchdog/unittest_watchdog.cc index 69451778c..f43f31414 100644 --- a/tests/nnstreamer_watchdog/unittest_watchdog.cc +++ b/tests/nnstreamer_watchdog/unittest_watchdog.cc @@ -36,6 +36,8 @@ _watchdog_trigger (gpointer ptr) if (received) (*received)++; + else + return FALSE; /** Trigger 10 times */ return (*received) != 10;