Commit 1c4d0048 authored by Johannes Henkel's avatar Johannes Henkel Committed by Commit Bot

Initialize ResourceError::extended_error_code_ to zero

Not all constructors write this field, so defaulting to zero
may some day help avoid grief from uninitialized values or
undefined behavior.

Change-Id: I478ecbc346a78d68721e3731f9cec9aad77919fa
Reviewed-on: https://chromium-review.googlesource.com/1054611
Commit-Queue: Johannes Henkel <johannes@chromium.org>
Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557963}
parent 574b31d7
...@@ -97,7 +97,7 @@ class PLATFORM_EXPORT ResourceError final { ...@@ -97,7 +97,7 @@ class PLATFORM_EXPORT ResourceError final {
void InitializeDescription(); void InitializeDescription();
int error_code_; int error_code_;
int extended_error_code_; int extended_error_code_ = 0;
KURL failing_url_; KURL failing_url_;
String localized_description_; String localized_description_;
bool is_access_check_ = false; bool is_access_check_ = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment