From 3b4b8033decb8b8d68a14db9b1aa64a8258b25ea Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 16 Apr 2025 16:29:44 +0200 Subject: [PATCH] tests: Make the static ananlyzers happy with the threads Signed-off-by: Jakub Jelen Reviewed-by: Norbert Pocs --- tests/unittests/torture_threads_buffer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unittests/torture_threads_buffer.c b/tests/unittests/torture_threads_buffer.c index 3abc2e75..dfd9c571 100644 --- a/tests/unittests/torture_threads_buffer.c +++ b/tests/unittests/torture_threads_buffer.c @@ -119,6 +119,8 @@ static void *thread_growing_buffer_shifting(void *threadid) buffer = ssh_buffer_new(); if (buffer == NULL) { pthread_exit((void *)-1); + /* dummy analyzers ... */ + return NULL; } ssh_buffer_set_secure(buffer);