aboutsummaryrefslogtreecommitdiffstats
path: root/strftime.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-24 02:43:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-24 02:43:34 +0000
commitf3de12aa6bf81acd47282f60aef2bb1da583134a (patch)
tree3c0c23f4a2b55d04f2cbe3492209efb38d0c5d30 /strftime.c
parentaeb0be6ad5a7d756a2ebe41ab2eb6639c2b976b3 (diff)
downloadruby-f3de12aa6bf81acd47282f60aef2bb1da583134a.tar.gz
strftime.c: fix false failure
* strftime.c (rb_strftime_with_timespec): remove unnecessary check, as `s` equals to `endp` when recursed STRFTIME resized the capacity same as the size. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strftime.c b/strftime.c
index a426a455bd..f532bb0ac6 100644
--- a/strftime.c
+++ b/strftime.c
@@ -851,7 +851,7 @@ rb_strftime_with_timespec(VALUE ftime, const char *format, size_t format_len,
}
}
}
- if (s >= endp || format != format_end) {
+ if (format != format_end) {
return 0;
}
len = s - start;