summaryrefslogtreecommitdiffstats
path: root/ext
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
commit41038314050b4dbd6cb43a41fd2f8f3e743d4bdf (patch)
tree20d05e0b05a4730e3497de6babbda371cc2f3595 /ext
parent26307f3f8b935a604d3fe69d92c2714680a8060d (diff)
downloadruby-41038314050b4dbd6cb43a41fd2f8f3e743d4bdf.tar.gz
ruby-41038314050b4dbd6cb43a41fd2f8f3e743d4bdf.tar.xz
ruby-41038314050b4dbd6cb43a41fd2f8f3e743d4bdf.zip
* ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignore
unbound function. [ruby-dev:38474] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-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 d0b2c7a81..c8daaf632 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