Skip to content

Commit 25546f8

Browse files
committed
Merge pull request #402 from sodabrew/libdir_again
Handle dir_config returning nil, nil on Windows.
2 parents b5ab12c + 773ed65 commit 25546f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysql2/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def asplode lib
3434
# Ruby versions not incorporating the mkmf fix at
3535
# https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/39717
3636
# do not properly search for lib directories, and must be corrected
37-
unless lib[-3, 3] == 'lib'
37+
unless lib && lib[-3, 3] == 'lib'
3838
@libdir_basename = 'lib'
3939
inc, lib = dir_config('mysql')
4040
end

0 commit comments

Comments
 (0)