From 83b4c1c4248680697e39847aa68fe0b89a49fbaa Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 5 Jun 2008 11:24:40 +0000 Subject: [PATCH] * thread.c (thread_set_trace_func_m): fix check for proc argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ thread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e19fc5c5d0..d863f3eedd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 5 20:24:15 2008 Yusuke Endoh + + * thread.c (thread_set_trace_func_m): fix check for proc argument. + Thu Jun 5 20:17:29 2008 Yusuke Endoh * lib/rexml/document.rb (REXML::Document:write): leaky modification diff --git a/thread.c b/thread.c index ec168f2137..5d933e4aef 100644 --- a/thread.c +++ b/thread.c @@ -3032,7 +3032,7 @@ thread_set_trace_func_m(VALUE obj, VALUE trace) GetThreadPtr(obj, th); rb_thread_remove_event_hook(th, call_trace_func); - if (!NIL_P(trace)) { + if (NIL_P(trace)) { return Qnil; } thread_add_trace_func(th, trace);