* strftime.c (rb_strftime_with_timespec): clear colons at unknown

directive.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2010-07-09 12:21:26 +00:00
parent 6f1c1b496e
commit 85f10041b2
2 changed files with 6 additions and 0 deletions

View file

@ -771,6 +771,7 @@ rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, const str
precision = -1;
flags = 0;
padding = 0;
colons = 0;
break;
}
if (i) {