* 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
This commit is contained in:
parent
7493685b3b
commit
83b4c1c424
@ -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>
|
Thu Jun 5 20:17:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* lib/rexml/document.rb (REXML::Document:write): leaky modification
|
* lib/rexml/document.rb (REXML::Document:write): leaky modification
|
||||||
|
2
thread.c
2
thread.c
@ -3032,7 +3032,7 @@ thread_set_trace_func_m(VALUE obj, VALUE trace)
|
|||||||
GetThreadPtr(obj, th);
|
GetThreadPtr(obj, th);
|
||||||
rb_thread_remove_event_hook(th, call_trace_func);
|
rb_thread_remove_event_hook(th, call_trace_func);
|
||||||
|
|
||||||
if (!NIL_P(trace)) {
|
if (NIL_P(trace)) {
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
thread_add_trace_func(th, trace);
|
thread_add_trace_func(th, trace);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user