From 4e4865de0daa710f4ff39709e40b09f2aeabab09 Mon Sep 17 00:00:00 2001 From: mame Date: Thu, 5 Jun 2008 11:24:40 +0000 Subject: * thread.c (thread_set_trace_func_m): fix check for proc argument. git-svn-id: http://svn.ruby-lang.org/repos/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 e19fc5c5d..d863f3eed 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 ec168f213..5d933e4ae 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); -- cgit