Commit 3eef9f21 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-17841: Fix -Wsometimes-uninitialized

maria_open(): Initialize share->mode=0 for S3
parent 483536ec
...@@ -265,7 +265,7 @@ static MARIA_HA *maria_clone_internal(MARIA_SHARE *share, ...@@ -265,7 +265,7 @@ static MARIA_HA *maria_clone_internal(MARIA_SHARE *share,
MARIA_HA *maria_open(const char *name, int mode, uint open_flags, MARIA_HA *maria_open(const char *name, int mode, uint open_flags,
S3_INFO *s3) S3_INFO *s3)
{ {
int open_mode,save_errno; int open_mode= 0,save_errno;
uint i,j,len,errpos,head_length,base_pos,keys, realpath_err, uint i,j,len,errpos,head_length,base_pos,keys, realpath_err,
key_parts,base_key_parts,unique_key_parts,fulltext_keys,uniques; key_parts,base_key_parts,unique_key_parts,fulltext_keys,uniques;
uint internal_table= MY_TEST(open_flags & HA_OPEN_INTERNAL_TABLE); uint internal_table= MY_TEST(open_flags & HA_OPEN_INTERNAL_TABLE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment