[Lldb-commits] [lldb] r137396 - /lldb/trunk/source/Host/macosx/Host.mm
Johnny Chen
johnny.chen at apple.com
Thu Aug 11 17:21:20 PDT 2011
Author: johnny
Date: Thu Aug 11 19:21:20 2011
New Revision: 137396
URL: http://llvm.org/viewvc/llvm-project?rev=137396&view=rev
Log:
Silence the static analyzer.
Modified:
lldb/trunk/source/Host/macosx/Host.mm
Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=137396&r1=137395&r2=137396&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Thu Aug 11 19:21:20 2011
@@ -951,7 +951,7 @@
mib[mib_len] = process_info.GetProcessID();
mib_len++;
- cpu_type_t cpu, sub;
+ cpu_type_t cpu, sub = 0;
size_t cpu_len = sizeof(cpu);
if (::sysctl (mib, mib_len, &cpu, &cpu_len, 0, 0) == 0)
{
More information about the lldb-commits
mailing list