From 8d10cdd9aa1d58f1898adf7752a7026f151ebc04 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 20 Feb 2009 04:34:29 +0000 Subject: [PATCH] Fix potential use of uninitialized variable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65109 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/scan-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/scan-build b/utils/scan-build index fc6407e213..4f2a68ff9e 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -84,7 +84,7 @@ sub DieDiag { my $ClangSB = Cwd::realpath("$RealBin/cbin/clang"); my $Clang = $ClangSB; -if (! -x $ClangSB) { +if (!defined $ClangSB || ! -x $ClangSB) { $Clang = "clang"; } -- 2.40.0