diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-07 08:32:01 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-07 08:32:01 +0000 |
| commit | 0fa6bbc8ddf49eeb61ec62206b4f0e6326c160e8 (patch) | |
| tree | 016a66d71e79c14d451ff959a13be28f37883749 /ext | |
| parent | b6dbed3c8c4b82231d39e31add3f740f04491b0a (diff) | |
| download | ruby-0fa6bbc8ddf49eeb61ec62206b4f0e6326c160e8.tar.gz ruby-0fa6bbc8ddf49eeb61ec62206b4f0e6326c160e8.tar.xz ruby-0fa6bbc8ddf49eeb61ec62206b4f0e6326c160e8.zip | |
* 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
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/iconv/iconv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
