[cfe-commits] r65109 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Thu Feb 19 20:34:31 PST 2009
Author: kremenek
Date: Thu Feb 19 22:34:29 2009
New Revision: 65109
URL: http://llvm.org/viewvc/llvm-project?rev=65109&view=rev
Log:
Fix potential use of uninitialized variable.
Modified:
cfe/trunk/utils/scan-build
Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=65109&r1=65108&r2=65109&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Thu Feb 19 22:34:29 2009
@@ -84,7 +84,7 @@
my $ClangSB = Cwd::realpath("$RealBin/cbin/clang");
my $Clang = $ClangSB;
-if (! -x $ClangSB) {
+if (!defined $ClangSB || ! -x $ClangSB) {
$Clang = "clang";
}
More information about the cfe-commits
mailing list