diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-11-04 00:22:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-11-04 00:22:12 +0000 |
commit | 655aba727e2a5f7f4e4952d35d35faa6ad4ec6e5 (patch) | |
tree | ea26dc00ad3a65df2c7ce4d504e9b3dfdf3b37bf | |
parent | 3c1847f82a9a3fd95ce7a033f6412ea332133408 (diff) |
Fix use of uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58663 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-x | utils/scan-build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/scan-build b/utils/scan-build index f598bb0eaa..03d8f4dbdf 100755 --- a/utils/scan-build +++ b/utils/scan-build @@ -1164,7 +1164,7 @@ if (defined $OutputFormat) { # Run the build. my $ExitStatus = RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd); -if ($OutputFormat eq "plist") { +if (defined $OutputFormat and $OutputFormat eq "plist") { Diag "Analysis run complete.\n"; Diag "Analysis results (plist files) deposited in '$HtmlDir'\n"; } |