1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

tests: Make the static ananlyzers happy with the threads

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com>
This commit is contained in:
Jakub Jelen
2025-04-16 16:29:44 +02:00
parent 0068fdd594
commit 3b4b8033de

View File

@ -119,6 +119,8 @@ static void *thread_growing_buffer_shifting(void *threadid)
buffer = ssh_buffer_new(); buffer = ssh_buffer_new();
if (buffer == NULL) { if (buffer == NULL) {
pthread_exit((void *)-1); pthread_exit((void *)-1);
/* dummy analyzers ... */
return NULL;
} }
ssh_buffer_set_secure(buffer); ssh_buffer_set_secure(buffer);