summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-05 11:24:40 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-05 11:24:40 +0000
commit83b4c1c4248680697e39847aa68fe0b89a49fbaa (patch)
tree926622ff943d4f2faf5d3cce371b98d31c41bee2 /thread.c
parent7493685b3b9d9dfc980e8639422bb64ff2530cd5 (diff)
* 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
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
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);