diff options
author | szym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 15:47:15 +0000 |
---|---|---|
committer | szym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 15:47:15 +0000 |
commit | 10366db094dcf1665df46ca6cf4ea54e03d1b7c2 (patch) | |
tree | 20baca35a2a9d28bdbc0294d443e19e740137236 /net/dns | |
parent | e10d96da6a134dc826bdd58ae300ddc59ed00083 (diff) | |
download | chromium_src-10366db094dcf1665df46ca6cf4ea54e03d1b7c2.zip chromium_src-10366db094dcf1665df46ca6cf4ea54e03d1b7c2.tar.gz chromium_src-10366db094dcf1665df46ca6cf4ea54e03d1b7c2.tar.bz2 |
[net/dns] Don't use memset to initialize a struct with string16 members.
Forcing string16 to 0 leads to iterator compatiblity check crash in MSVS2010 Debug builds.
This bug was diagnosed by tom.cassiotis@gmail.com
BUG=131589
TEST=Start MSVS2010 Debug build of chrome.exe
Review URL: https://chromiumcodereview.appspot.com/10545065
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/dns')
-rw-r--r-- | net/dns/dns_config_service_win.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dns/dns_config_service_win.cc b/net/dns/dns_config_service_win.cc index c64f651..af609f0 100644 --- a/net/dns/dns_config_service_win.cc +++ b/net/dns/dns_config_service_win.cc @@ -329,8 +329,7 @@ class DnsConfigServiceWin::ConfigReader : public SerialWorker { // Should be called on WorkerPool. success_ = false; - DnsSystemSettings settings; - memset(&settings, 0, sizeof(settings)); + DnsSystemSettings settings = {}; settings.addresses = ReadIpHelper(GAA_FLAG_SKIP_ANYCAST | GAA_FLAG_SKIP_UNICAST | GAA_FLAG_SKIP_MULTICAST | |