summaryrefslogtreecommitdiff
path: root/storage/innobase/include/data0data.ic
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-06-21 14:21:03 +0200
committerSergei Golubchik <serg@mariadb.org>2016-06-21 14:21:03 +0200
commit720e04ff6760e9d04566d7fb33131fd1886ef4cd (patch)
tree17cd54888d796e976e571d5873e3d3f051436a06 /storage/innobase/include/data0data.ic
parentf1aae861eee711cc718ca8fe52cc08d326b948cf (diff)
downloadmariadb-git-720e04ff6760e9d04566d7fb33131fd1886ef4cd.tar.gz
5.6.31
Diffstat (limited to 'storage/innobase/include/data0data.ic')
-rw-r--r--storage/innobase/include/data0data.ic8
1 files changed, 5 insertions, 3 deletions
diff --git a/storage/innobase/include/data0data.ic b/storage/innobase/include/data0data.ic
index 6937d55d211..11499ab928c 100644
--- a/storage/innobase/include/data0data.ic
+++ b/storage/innobase/include/data0data.ic
@@ -1,6 +1,6 @@
/*****************************************************************************
-Copyright (c) 1994, 2012, Oracle and/or its affiliates. All Rights Reserved.
+Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
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 the Free Software
@@ -56,7 +56,8 @@ dfield_set_type(
dfield_t* field, /*!< in: SQL data field */
const dtype_t* type) /*!< in: pointer to data type struct */
{
- ut_ad(field && type);
+ ut_ad(field != NULL);
+ ut_ad(type != NULL);
field->type = *type;
}
@@ -194,7 +195,8 @@ dfield_copy_data(
dfield_t* field1, /*!< out: field to copy to */
const dfield_t* field2) /*!< in: field to copy from */
{
- ut_ad(field1 && field2);
+ ut_ad(field1 != NULL);
+ ut_ad(field2 != NULL);
field1->data = field2->data;
field1->len = field2->len;