From 4fd154d05e4de3d2c369281576c872bd180f7bd9 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 10 Jun 2008 06:15:10 +0000 Subject: [PATCH] * rational.c (nurat_s_convert): need not to initialize optional argument for rb_scan_args(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ rational.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index bc78575cd6..90290c0766 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jun 10 13:48:38 2008 Yukihiro Matsumoto + + * rational.c (nurat_s_convert): need not to initialize optional + argument for rb_scan_args(). + Tue Jun 10 12:58:07 2008 Nobuyoshi Nakada * ext/io/wait/wait.c (FIONREAD_POSSIBLE_P): suppress warnings. diff --git a/rational.c b/rational.c index 379551a345..9dfd84f323 100644 --- a/rational.c +++ b/rational.c @@ -1422,8 +1422,6 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass) { VALUE a1, a2; - a1 = Qnil; - a2 = Qnil; rb_scan_args(argc, argv, "02", &a1, &a2); switch (TYPE(a1)) {