summaryrefslogtreecommitdiff
path: root/ext/dl/lib/dl/callback.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 08:57:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-16 08:57:41 +0000
commit28e7beb54c560a43f72e55d512c4f09b55061030 (patch)
tree20d05e0b05a4730e3497de6babbda371cc2f3595 /ext/dl/lib/dl/callback.rb
parent461daa604b8be8a8255525d00e7e7630303aa042 (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/callback.rb')
-rw-r--r--ext/dl/lib/dl/callback.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/callback.rb b/ext/dl/lib/dl/callback.rb
index d0b2c7a819f..c8daaf63224 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