summaryrefslogtreecommitdiff
path: root/include/my_sys.h
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-07-03 00:35:28 +0300
committerMonty <monty@mariadb.org>2020-07-03 00:35:28 +0300
commit5211af1c16063e9c7a62e39ae4acfdc7c9f15e35 (patch)
treea615a9bf9aaec7dd3f2f510ba2c194d673c65e78 /include/my_sys.h
parentf347b3e0e6592329b1447fa460aca0a4b1f680b1 (diff)
parentb6ec1e8bbf0ffca2d715aded694722e0c4b5d484 (diff)
downloadmariadb-git-5211af1c16063e9c7a62e39ae4acfdc7c9f15e35.tar.gz
Merge remote-tracking branch 'origin/10.3' into 10.4
Diffstat (limited to 'include/my_sys.h')
-rw-r--r--include/my_sys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h
index 71ec7f917c6..d3fdc3657a9 100644
--- a/include/my_sys.h
+++ b/include/my_sys.h
@@ -534,6 +534,7 @@ static inline int my_b_read(IO_CACHE *info, uchar *Buffer, size_t Count)
static inline int my_b_write(IO_CACHE *info, const uchar *Buffer, size_t Count)
{
+ MEM_CHECK_DEFINED(Buffer, Count);
if (info->write_pos + Count <= info->write_end)
{
memcpy(info->write_pos, Buffer, Count);
@@ -555,6 +556,7 @@ static inline int my_b_get(IO_CACHE *info)
static inline my_bool my_b_write_byte(IO_CACHE *info, uchar chr)
{
+ MEM_CHECK_DEFINED(&chr, 1);
if (info->write_pos >= info->write_end)
if (my_b_flush_io_cache(info, 1))
return 1;