diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | thread.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Jun 5 20:24:15 2008 Yusuke Endoh <mame@tsg.ne.jp> + + * thread.c (thread_set_trace_func_m): fix check for proc argument. + Thu Jun 5 20:17:29 2008 Yusuke Endoh <mame@tsg.ne.jp> * lib/rexml/document.rb (REXML::Document:write): leaky modification @@ -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); |