summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-17 08:31:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-08-17 08:31:02 +0000
commit68c253043a6245dd9607eeb8a03b3cf07fa56c2a (patch)
treed84103244e9bebcfedefc67ac8f08ad6f0e77c73 /error.c
parent6aac2506bcb9ad142dc8a77793a50923ff36999e (diff)
downloadruby-68c253043a6245dd9607eeb8a03b3cf07fa56c2a.tar.gz
ruby-68c253043a6245dd9607eeb8a03b3cf07fa56c2a.tar.xz
ruby-68c253043a6245dd9607eeb8a03b3cf07fa56c2a.zip
* io.c (rb_io_reopen): should clear allocated OpenFile. pointed
out by Guy Decoux. [ruby-core:03288] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/error.c b/error.c
index dcba4f416..c67fce9d3 100644
--- a/error.c
+++ b/error.c
@@ -353,10 +353,7 @@ exc_initialize(argc, argv, exc)
{
VALUE arg;
- if (rb_scan_args(argc, argv, "01", &arg) == 1) {
- VALUE mesg = arg;
- StringValue(mesg); /* ensure mesg can be converted to String */
- }
+ rb_scan_args(argc, argv, "01", &arg);
rb_iv_set(exc, "mesg", arg);
rb_iv_set(exc, "bt", Qnil);