diff options
| author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-05 11:24:40 +0000 |
|---|---|---|
| committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-05 11:24:40 +0000 |
| commit | 4e4865de0daa710f4ff39709e40b09f2aeabab09 (patch) | |
| tree | 926622ff943d4f2faf5d3cce371b98d31c41bee2 | |
| parent | 40a09ced3d4af868215b8b5ec6240c5203929de2 (diff) | |
| download | ruby-4e4865de0daa710f4ff39709e40b09f2aeabab09.tar.gz ruby-4e4865de0daa710f4ff39709e40b09f2aeabab09.tar.xz ruby-4e4865de0daa710f4ff39709e40b09f2aeabab09.zip | |
* thread.c (thread_set_trace_func_m): fix check for proc argument.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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); |
