mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/date.rb (Date::self.complete_hash): need to check if g is
nil before dereference. [ruby-core:09116] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7df8b0501a
commit
d947750eb0
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Oct 13 01:48:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/date.rb (Date::self.complete_hash): need to check if g is
|
||||
nil before dereference. [ruby-core:09116]
|
||||
|
||||
Fri Oct 13 01:05:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_str_partition): RDoc update. a patch from
|
||||
|
|
|
@ -797,7 +797,7 @@ class Date
|
|||
end
|
||||
end
|
||||
|
||||
if g[0] == :time
|
||||
if g && g[0] == :time
|
||||
if self <= DateTime
|
||||
d ||= Date.today
|
||||
elem[:jd] ||= d.jd
|
||||
|
|
Loading…
Add table
Reference in a new issue