summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorDaniel Black <daniel.black@au.ibm.com>2017-07-02 16:48:11 +1000
committerSergey Vojtovich <svoj@mariadb.org>2017-07-03 11:15:44 +0400
commit9fc71eebb6b96d76a2688a08bb810f2856b7a113 (patch)
tree0482d9000d3af6b5603aa5965c928d8f0acff9f0 /sql
parent4db6e1e4a502df5a4b30aed60552314533b35d79 (diff)
downloadmariadb-git-9fc71eebb6b96d76a2688a08bb810f2856b7a113.tar.gz
item_timefunc: identical operands
CID 971836 (#1 of 1): Same on both sides (CONSTANT_EXPRESSION_RESULT) pointless_expression: The expression val != end && val != end does not accomplish anything because it evaluates to either of its identical operands, val != end.
Diffstat (limited to 'sql')
-rw-r--r--sql/item_timefunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index 420fb29f518..0ed1506bbee 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -3041,7 +3041,7 @@ get_date_time_result_type(const char *format, uint length)
const char *val= format;
const char *end= format + length;
- for (; val != end && val != end; val++)
+ for (; val != end; val++)
{
if (*val == '%' && val+1 != end)
{