Skip to content

Commit

Permalink
Fix GCC -Og -Wmaybe-uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jul 25, 2022
1 parent 8260fe5 commit 788535f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/auth/caching_sha2_pw.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/************************************************************************************
Copyright (C) 2017 MariaDB Corporation AB
Copyright (C) 2017, 2022, MariaDB Corporation AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
Expand Down Expand Up @@ -243,7 +243,7 @@ static int auth_caching_sha2_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
char passwd[MAX_PW_LEN];
#ifdef HAVE_OPENSSL
unsigned char *rsa_enc_pw= NULL;
size_t rsa_size;
size_t rsa_size= 0;
#else
unsigned char rsa_enc_pw[MAX_PW_LEN];
ULONG rsa_size;
Expand Down
4 changes: 2 additions & 2 deletions plugins/auth/sha256_pw.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/************************************************************************************
Copyright (C) 2017 MariaDB Corporation AB
Copyright (C) 2017, 2022, MariaDB Corporation AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
Expand Down Expand Up @@ -164,7 +164,7 @@ static int auth_sha256_client(MYSQL_PLUGIN_VIO *vio, MYSQL *mysql)
int packet_length;
int rc= CR_ERROR;
char passwd[MAX_PW_LEN];
unsigned int rsa_size;
unsigned int rsa_size= 0;
unsigned int pwlen, i;

#if defined(HAVE_OPENSSL)
Expand Down

0 comments on commit 788535f

Please sign in to comment.