Skip to content
Permalink
Browse files
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.
  • Loading branch information
grooverdan authored and Sergey Vojtovich committed Jul 3, 2017
1 parent 4db6e1e commit 9fc71ee
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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)
{

0 comments on commit 9fc71ee

Please sign in to comment.