summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-17 02:23:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-17 02:23:52 +0000
commitdc1e0de337aa02ca596c3a91c7d32daf965ab695 (patch)
treec13aa4bcf39daf2d910eed3250f1dded46f6f977 /eval.c
parent8295c244e514042d38fc08eeb4798a8f53ad1162 (diff)
downloadruby-dc1e0de337aa02ca596c3a91c7d32daf965ab695.tar.gz
ruby-dc1e0de337aa02ca596c3a91c7d32daf965ab695.tar.xz
ruby-dc1e0de337aa02ca596c3a91c7d32daf965ab695.zip
* eval.c (THREAD_ALLOC): th->thread should be initialized to NULL.
[ruby-talk:106657] The solution was found by Guy Decoux. * file.c (rb_stat_dev_major): new methods File::Stat#dev_major and #dev_minor. [ruby-core:03195] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 9cf05b6da..57c5752eb 100644
--- a/eval.c
+++ b/eval.c
@@ -11227,6 +11227,7 @@ rb_thread_group(thread)
th->priority = 0;\
th->thgroup = thgroup_default;\
th->locals = 0;\
+ th->thread = 0;\
} while (0)
static rb_thread_t