aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
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);