summaryrefslogtreecommitdiffstats
path: root/base/pickle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/pickle.cc')
-rw-r--r--base/pickle.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/pickle.cc b/base/pickle.cc
index 491bc3d..2b5b905 100644
--- a/base/pickle.cc
+++ b/base/pickle.cc
@@ -263,6 +263,7 @@ bool Pickle::ReadString16(void** iter, string16* result) const {
bool Pickle::ReadBytes(void** iter, const char** data, int length) const {
DCHECK(iter);
DCHECK(data);
+ *data = 0;
if (!IteratorHasRoomFor(*iter, length))
return false;
@@ -277,6 +278,8 @@ bool Pickle::ReadData(void** iter, const char** data, int* length) const {
DCHECK(iter);
DCHECK(data);
DCHECK(length);
+ *length = 0;
+ *data = 0;
if (!ReadLength(iter, length))
return false;