Always default initialize WebURLError::extended_reason_ to 0.
I think it's better to do this directly on the field decl in the header than with every single constructor since it's easy to forget it there: at the moment it's missing from the third constructor in the .cc. It's possible that this makes no difference thus far but it's better to initialize it to avoid undefined behavior. R=caseq Change-Id: Ifd3e6b320bae593f9400f30ca7dc4769c391afb5 Reviewed-on: https://chromium-review.googlesource.com/1038820Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Reviewed-by:
Pavel Feldman <pfeldman@chromium.org> Commit-Queue: Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#555662}
Showing
Please register or sign in to comment