diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-16 08:57:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-16 08:57:41 +0000 |
commit | 28e7beb54c560a43f72e55d512c4f09b55061030 (patch) | |
tree | 20d05e0b05a4730e3497de6babbda371cc2f3595 /ext/dl/lib/dl | |
parent | 461daa604b8be8a8255525d00e7e7630303aa042 (diff) |
* ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignore
unbound function. [ruby-dev:38474]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl')
-rw-r--r-- | ext/dl/lib/dl/callback.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/callback.rb b/ext/dl/lib/dl/callback.rb index d0b2c7a819..c8daaf6322 100644 --- a/ext/dl/lib/dl/callback.rb +++ b/ext/dl/lib/dl/callback.rb @@ -48,7 +48,7 @@ module DL } } end - if( proc_entry[ctype][index] ) + if( index and proc_entry[ctype][index] ) proc_entry[ctype][index] = nil return true else |