1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
mame 2008-06-05 11:24:40 +00:00
parent 7493685b3b
commit 83b4c1c424
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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);