Permalink
Browse files

Dropping an eval() call for send().

  • Loading branch information...
1 parent 9b77daa commit fb16a2f9bc45e22aa2b04d1d71ecb19fa3ea3c42 @JEG2 JEG2 committed Oct 14, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rufus/tokyo/cabinet/abstract.rb
@@ -640,8 +640,8 @@ def do_call_misc (function, list_pointer)
def libcall (lib_method, *args)
- (eval(%{ lib.#{lib_method}(@db, *args) }) == 1) or \
- raise TokyoError.new("call to #{lib_method} failed")
+ raise TokyoError.new("call to #{lib_method} failed") \
+ unless lib.send(lib_method, @db, *args) == 1
end
end

0 comments on commit fb16a2f

Please sign in to comment.