summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-22 09:48:30 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-22 09:48:30 +0000
commit2d8efcd093457a1e59d725211df83a50930eefac (patch)
treee1843fe06e18eb57f88faff02dbca372134f4cf4 /ext
parent7681b977546394a37f269711a8fb39b38188025b (diff)
merges r23444 from trunk into ruby_1_9_1.
-- * 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/branches/ruby_1_9_1@23529 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