Fixed an issue where we weren't zeroing out the type fully

thanks to a nice clang warning!

llvm-svn: 134824
This commit is contained in:
Greg Clayton 2011-07-09 17:14:57 +00:00
parent ef37d68a8a
commit ed49aed3af
1 changed files with 1 additions and 1 deletions

View File

@ -971,7 +971,7 @@ DynamicLoaderMacOSXDYLD::ReadMachHeader (lldb::addr_t addr, llvm::MachO::mach_he
if (bytes_read == sizeof(llvm::MachO::mach_header))
{
uint32_t offset = 0;
::memset (header, 0, sizeof(header));
::memset (header, 0, sizeof(llvm::MachO::mach_header));
// Get the magic byte unswapped so we can figure out what we are dealing with
DataExtractor data(header_bytes.GetBytes(), header_bytes.GetByteSize(), lldb::endian::InlHostByteOrder(), 4);