aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-02-24 23:26:11 -0500
committerJack Nagel2014-02-24 23:26:11 -0500
commitfc38a631e74129d07e55bb6cd2650718b325d780 (patch)
treed8bc23fdf32abcf3591951db4fd977f45456fa0e /Library
parentc73a88ecc6463d898fc08151ec63d19ab358632b (diff)
downloadhomebrew-fc38a631e74129d07e55bb6cd2650718b325d780.tar.bz2
Add nil check to partially address #26563
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
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