From f3de12aa6bf81acd47282f60aef2bb1da583134a Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 24 Mar 2016 02:43:34 +0000 Subject: 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 --- strftime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strftime.c') 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; -- cgit v1.2.3