mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.1 into 10.2
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
/* Copyright (c) 2009, 2013, Oracle and/or its affiliates.
|
||||
Copyright (c) 2013, 2020, MariaDB
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -319,7 +320,8 @@ static char *debug_sync_bmove_len(char *to, char *to_end,
|
||||
DBUG_ASSERT(to_end);
|
||||
DBUG_ASSERT(!length || from);
|
||||
set_if_smaller(length, (size_t) (to_end - to));
|
||||
memcpy(to, from, length);
|
||||
if (length)
|
||||
memcpy(to, from, length);
|
||||
return (to + length);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user