Skip to content

Commit

Permalink
[CodeClean] fix svace issue
Browse files Browse the repository at this point in the history
This patch fixes pointer dereferenced after null.
WGID:13147986

Signed-off-by: Yelin Jeong <[email protected]>
  • Loading branch information
niley7464 authored and jaeyun-jung committed Nov 5, 2024
1 parent 20e7867 commit 178e7a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/nnstreamer_watchdog/unittest_watchdog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ _watchdog_trigger (gpointer ptr)

if (received)
(*received)++;
else
return FALSE;

/** Trigger 10 times */
return (*received) != 10;
Expand Down

0 comments on commit 178e7a0

Please sign in to comment.