diff options
| author | Jack Nagel | 2014-02-24 23:26:11 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-02-24 23:26:11 -0500 | 
| commit | d848a6c5fdc81f6ebdf5acd0bbb58ee5194bb272 (patch) | |
| tree | 45afca3e79b1f3cf1d03c4f9c98e26e29536bb93 /Library/Homebrew/formula.rb | |
| parent | 403fdc7523b5e1d75916f5374503b8aee3abfcf4 (diff) | |
| download | brew-d848a6c5fdc81f6ebdf5acd0bbb58ee5194bb272.tar.bz2 | |
Add nil check to partially address Homebrew/homebrew#26563
Diffstat (limited to 'Library/Homebrew/formula.rb')
| -rw-r--r-- | Library/Homebrew/formula.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 503ea800e..e67337226 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -242,8 +242,8 @@ class Formula      (self.class.cc_failures || []).any? do |failure|        # Major version check distinguishes between, e.g.,        # GCC 4.7.1 and GCC 4.8.2, where a comparison is meaningless -      failure.compiler == cc.name && failure.major_version == cc.major_version && \ -        failure.version >= cc.version +      failure.compiler == cc.name && failure.major_version == cc.major_version && +        failure.version >= (cc.version || 0)      end    end  | 
