mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user