tidy(unittests): zero-init config string pointers

Signed-off-by: Samir Benmendil <me@rmz.io>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Samir Benmendil
2026-01-02 14:33:22 +00:00
parent ce45ba8c61
commit 98a844ceb2

View File

@@ -811,7 +811,7 @@ static void torture_config_match(void **state,
{
ssh_session session = *state;
char *localuser = NULL;
const char *config;
const char *config = NULL;
char config_string[1024];
/* Without any settings we should get all-matched.com hostname */
@@ -1098,7 +1098,7 @@ static void torture_config_proxyjump(void **state,
{
ssh_session session = *state;
const char *config;
const char *config = NULL;
/* Tests for libssh based proxyjump */
@@ -1543,7 +1543,7 @@ static void torture_config_address_family(void **state,
{
ssh_session session = *state;
const char *config;
const char *config = NULL;
torture_reset_config(session);
ssh_options_set(session, SSH_OPTIONS_HOST, "simple");