From 0fa6bbc8ddf49eeb61ec62206b4f0e6326c160e8 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 7 May 2002 08:32:01 +0000 Subject: * re.c (rb_reg_s_quote): # also should be quoted. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/iconv/iconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 2366a350c..a7b1b4118 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -188,7 +188,7 @@ iconv_failure_initialize struct iconv_env_t *env; #endif /* HAVE_PROTOTYPES */ { - if (NIL_P(rb_ivar_get(error, rb_mesg))) + if (!rb_ivar_defined(error, rb_mesg) || NIL_P(rb_ivar_get(error, rb_mesg))) rb_ivar_set(error, rb_mesg, rb_inspect(failed)); if (env) { success = rb_funcall3(env->ret, rb_inserter, 1, &success); -- cgit