summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorkevg <claprix@yandex.ru>2016-11-24 17:36:02 +0300
committerkevg <claprix@yandex.ru>2016-11-24 17:36:02 +0300
commit780db8e25239e5423cfab50c04c60b79ebc0224b (patch)
tree2c73735c76607093d466a143627efdd8b4fbc2ca /sql/partition_info.cc
parentf4d6f26a4fae3f0cfcc6e77667c7697c4e024189 (diff)
downloadmariadb-git-780db8e25239e5423cfab50c04c60b79ebc0224b.tar.gz
fix build and some warnings
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 273c0afb9ac..6eac6dba68b 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -40,8 +40,6 @@ partition_info *partition_info::get_clone(THD *thd)
MEM_ROOT *mem_root= thd->mem_root;
DBUG_ENTER("partition_info::get_clone");
- if (!this)
- DBUG_RETURN(NULL);
List_iterator<partition_element> part_it(partitions);
partition_element *part;
partition_info *clone= new (mem_root) partition_info();