[cfe-commits] r58663 - /cfe/trunk/utils/scan-build
Ted Kremenek
kremenek at apple.com
Mon Nov 3 16:22:12 PST 2008
Author: kremenek
Date: Mon Nov 3 18:22:12 2008
New Revision: 58663
URL: http://llvm.org/viewvc/llvm-project?rev=58663&view=rev
Log:
Fix 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=58663&r1=58662&r2=58663&view=diff
==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Nov 3 18:22:12 2008
@@ -1164,7 +1164,7 @@
# 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";
}
More information about the cfe-commits
mailing list