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
commit371a11f678c6b09463043d07a2cb345362250e7b (patch)
tree3c0c23f4a2b55d04f2cbe3492209efb38d0c5d30 /strftime.c
parenta06790381b938e5e8b29e500ac4f455b103c4783 (diff)
downloadruby-371a11f678c6b09463043d07a2cb345362250e7b.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;