Skip to content

Commit

Permalink
libnetconf2 REFACTOR unitialized variables
Browse files Browse the repository at this point in the history
False positives.
  • Loading branch information
michalvasko committed Mar 28, 2024
1 parent 36300e7 commit e2bfcd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/session_server_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ nc_server_ssh_create_ssh_pubkey(const char *base64, ssh_key *key)
static int
auth_pubkey_compare_key(ssh_key key, struct nc_auth_client *auth_client)
{
uint16_t i, pubkey_count;
uint16_t i, pubkey_count = 0;
int ret = 0;
ssh_key new_key = NULL;
struct nc_public_key *pubkeys = NULL;
Expand Down
2 changes: 1 addition & 1 deletion tests/test_client_ssh.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ test_nc_client_ssh_adding_keypair(void **state)
{
(void)state;
int ret;
const char *pubkey1, *pubkey2;
const char *pubkey1 = NULL, *pubkey2 = NULL;

/* at the beginning keypair count should be 0 */
ret = nc_client_ssh_get_keypair_count();
Expand Down

0 comments on commit e2bfcd6

Please sign in to comment.