| Index: ios/web/navigation/nscoder_util.mm
|
| diff --git a/ios/web/navigation/nscoder_util.mm b/ios/web/navigation/nscoder_util.mm
|
| index 551dccd27a09697dffb0fe0f3fd956c60e206b06..9218f37ff4a9a561bd2e254df4a2609bda4a6dd4 100644
|
| --- a/ios/web/navigation/nscoder_util.mm
|
| +++ b/ios/web/navigation/nscoder_util.mm
|
| @@ -16,7 +16,7 @@ void EncodeString(NSCoder* coder, NSString* key, const std::string& string) {
|
| }
|
|
|
| std::string DecodeString(NSCoder* decoder, NSString* key) {
|
| - NSUInteger length;
|
| + NSUInteger length = 0;
|
| const uint8_t* bytes = [decoder decodeBytesForKey:key returnedLength:&length];
|
| return std::string(reinterpret_cast<const char*>(bytes), length);
|
| }
|
|
|