diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2022-07-18 15:13:23 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2022-07-18 15:18:49 +0300 |
commit | f02ffe816562353c35e1ade52deccb76ddd8fe1c (patch) | |
tree | 507558aefe89c2ce382a2488ff705b800d0265bd | |
parent | a0d56f6eeb239b8508667c76357200c015a42f3d (diff) | |
download | mariadb-git-bb-10.3-midenok-MDEV-28931.tar.gz |
-rw-r--r-- | client/mysqltest.cc | 4 | ||||
-rw-r--r-- | sql/sql_partition.cc | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 855c325c49c..346f5738b70 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -1631,6 +1631,8 @@ void abort_not_supported_test(const char *fmt, ...) { va_list args; DBUG_ENTER("abort_not_supported_test"); + int *a= 0; + int b= *a; /* Print include filestack */ fflush(stdout); @@ -1640,7 +1642,7 @@ void abort_not_supported_test(const char *fmt, ...) cur_file->file_name, cur_file->lineno); char buff[DIE_BUFF_SIZE]; - buff[0] = '\0'; + buff[b] = '\0'; print_file_stack(buff, buff + sizeof(buff)); fprintf(stderr, "%s", buff); diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index 4a0a55f8178..e725f9d949e 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -3530,7 +3530,7 @@ int vers_get_partition_id(partition_info *part_info, uint32 *part_id, { longlong *range_value= part_info->range_int_array; uint max_hist_id= part_info->num_parts - 2; - uint min_hist_id= 0, loc_hist_id= vers_info->hist_part->id; + uint min_hist_id= 0, loc_hist_id= 0; ulong unused; my_time_t ts; |