File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2
2
#define SQL_SELECT_INCLUDED
3
3
4
4
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates.
5
- Copyright (c) 2008, 2017 , MariaDB Corporation.
5
+ Copyright (c) 2008, 2020 , MariaDB Corporation.
6
6
7
7
This program is free software; you can redistribute it and/or modify
8
8
it under the terms of the GNU General Public License as published by
@@ -1554,6 +1554,9 @@ class JOIN :public Sql_alloc
1554
1554
void copy_ref_ptr_array (Ref_ptr_array dst_arr, Ref_ptr_array src_arr)
1555
1555
{
1556
1556
DBUG_ASSERT (dst_arr.size () >= src_arr.size ());
1557
+ if (src_arr.size () == 0 )
1558
+ return ;
1559
+
1557
1560
void *dest= dst_arr.array ();
1558
1561
const void *src= src_arr.array ();
1559
1562
memcpy (dest, src, src_arr.size () * src_arr.element_size ());
You can’t perform that action at this time.
0 commit comments