summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 09:07:30 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 09:07:30 +0000
commit6344190e612c725a786d8429d55b730f2b98fb1c (patch)
tree6901ae31932987079dad34f892bc30357dcd087a /include
parent0fd0bacc6194c2934b77d7369130a6b626b74be8 (diff)
merges r23571 from trunk into ruby_1_9_1.
-- * include/ruby/ruby.h (FilePathValue): prevent from GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index bcbcacbcba..e098f38cce 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -381,7 +381,7 @@ VALUE rb_str_export(VALUE);
VALUE rb_str_export_locale(VALUE);
VALUE rb_get_path(VALUE);
-#define FilePathValue(v) ((v) = rb_get_path(v))
+#define FilePathValue(v) (RB_GC_GUARD(v) = rb_get_path(v))
VALUE rb_get_path_no_checksafe(VALUE);
#define FilePathStringValue(v) ((v) = rb_get_path_no_checksafe(v))