diff options
Diffstat (limited to 'base/pickle.cc')
-rw-r--r-- | base/pickle.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/pickle.cc b/base/pickle.cc index 4fa206e..06a3be1 100644 --- a/base/pickle.cc +++ b/base/pickle.cc @@ -250,6 +250,8 @@ bool Pickle::ReadBytes(void** iter, const char** data, int length) const { DCHECK(iter); DCHECK(data); *data = 0; + if (!*iter) + *iter = const_cast<char*>(payload()); if (!IteratorHasRoomFor(*iter, length)) return false; |