From 35c6e6af5ba2c405a91dc6b9e4af833d0979ed22 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 13 Jul 1998 04:38:01 +0000 Subject: str2cstr git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index b8bf252530..c316e88d9c 100644 --- a/error.c +++ b/error.c @@ -274,8 +274,7 @@ exc_initialize(argc, argv, exc) { VALUE mesg; - rb_scan_args(argc, argv, "01", &mesg); - if (NIL_P(mesg)) { + if (rb_scan_args(argc, argv, "01", &mesg) == 0) { mesg = str_new(0, 0); } else { -- cgit v1.2.3