From 40cd13ecffcb381c15670915de822680631f5162 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. llvm-svn: 65109 --- clang/utils/scan-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/utils/scan-build b/clang/utils/scan-build index fc6407e213f4..4f2a68ff9ea2 100755 --- a/clang/utils/scan-build +++ b/clang/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"; }