summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Address.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-25 17:40:39 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-25 17:40:39 +0000
commit40e3592961b337df453bd3359b6ec34dc40ca411 (patch)
tree12c8cc7b380964333e0fb92d60096901dbaf2eea /lldb/source/Core/Address.cpp
parent160276dc939de6f49f581aaca918ed663f0a3956 (diff)
downloadbcm5719-llvm-40e3592961b337df453bd3359b6ec34dc40ca411.tar.gz
bcm5719-llvm-40e3592961b337df453bd3359b6ec34dc40ca411.zip
Initializes (uint64_t)buf variable, patch by Filipe Cabecinhas!
llvm-svn: 138565
Diffstat (limited to 'lldb/source/Core/Address.cpp')
-rw-r--r--lldb/source/Core/Address.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/Address.cpp b/lldb/source/Core/Address.cpp
index e90561c7b88..d6e851c25b1 100644
--- a/lldb/source/Core/Address.cpp
+++ b/lldb/source/Core/Address.cpp
@@ -74,7 +74,7 @@ ReadUIntMax64 (ExecutionContextScope *exe_scope, const Address &address, uint32_
success = false;
return 0;
}
- uint64_t buf;
+ uint64_t buf = 0;
success = ReadBytes (exe_scope, address, &buf, byte_size) == byte_size;
if (success)
OpenPOWER on IntegriCloud