summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 00:36:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-12-12 00:36:54 +0000
commite585523a2b60a69befc1562fd4c79cfa688bb197 (patch)
tree767c941787dfe02766290b092d930237d7c386b6 /variable.c
parent62b75bcb283ae38ef769084f88bf4fec352fdc34 (diff)
* ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
protect temporary context object. [ruby-dev:27979] * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should be called before actual variable initialization. [ruby-dev:27986] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/variable.c b/variable.c
index 610dae2261..72ef979a9f 100644
--- a/variable.c
+++ b/variable.c
@@ -469,7 +469,9 @@ mark_global_entry(key, entry)
void
rb_gc_mark_global_tbl()
{
- st_foreach(rb_global_tbl, mark_global_entry, 0);
+ if (rb_global_tbl) {
+ st_foreach(rb_global_tbl, mark_global_entry, 0);
+ }
}
static ID