From 95458ae6d610a7b98d7c5de73c352e4cce4c0871 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 12 Dec 2005 00:36:54 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- variable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'variable.c') diff --git a/variable.c b/variable.c index 610dae226..72ef979a9 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 -- cgit