We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0937574 commit 02f8e2fCopy full SHA for 02f8e2f
lib/vips.rb
@@ -30,9 +30,8 @@ def library_name(name, abi_number)
30
# check if the GLib DLLs are available. If these can not be found, we
31
# assume that GLib is statically linked into libvips.
32
begin
33
- lib = FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll",
+ FFI::DynamicLibrary.open("lib#{name}-#{abi_number}.dll",
34
FFI::DynamicLibrary::RTLD_LAZY | FFI::DynamicLibrary::RTLD_LOCAL)
35
- lib if lib
36
37
# LoadError for JRuby, RuntimeError for TruffleRuby
38
rescue LoadError, RuntimeError
0 commit comments