diff options
| -rwxr-xr-x | tool/rbinstall.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 7cb584bdd7..c3926e98ec 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -754,7 +754,7 @@ module RbInstall makefile = File.read(makefile_path) name = makefile[/^TARGET[ \t]*=[ \t]*((?:.*\\\n)*.*)/, 1] - return [] if name.empty? + return [] if name.nil? || name.empty? feature = makefile[/^DLLIB[ \t]*=[ \t]*((?:.*\\\n)*.*)/, 1] feature = feature.sub("$(TARGET)", name) |
