diff options
author | scottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-20 00:21:42 +0000 |
---|---|---|
committer | scottmg@google.com <scottmg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-20 00:21:42 +0000 |
commit | 36e619fe865fc7928943676bd87e03ffd49835dc (patch) | |
tree | 5ab947515498b5e7f12fb736bb332e9f5a6bf9b3 /net/dns | |
parent | 037efd065c8336d641489cf2668a0a0b7ce08318 (diff) | |
download | chromium_src-36e619fe865fc7928943676bd87e03ffd49835dc.zip chromium_src-36e619fe865fc7928943676bd87e03ffd49835dc.tar.gz chromium_src-36e619fe865fc7928943676bd87e03ffd49835dc.tar.bz2 |
fix another silly warning diagnosis in net/dns unittest
net\dns\dns_config_service_win_unittest.cc(100) : warning C4703: potentially uninitialized local pointer variable 'address' used
R=rsleevi@chromium.org
BUG=143646
Review URL: https://codereview.chromium.org/11230015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163104 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/dns')
-rw-r--r-- | net/dns/dns_config_service_win_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns/dns_config_service_win_unittest.cc b/net/dns/dns_config_service_win_unittest.cc index c3cce9b..44594087 100644 --- a/net/dns/dns_config_service_win_unittest.cc +++ b/net/dns/dns_config_service_win_unittest.cc @@ -90,7 +90,7 @@ scoped_ptr_malloc<IP_ADAPTER_ADDRESSES> CreateAdapterAddresses( adapter->IfType = info.if_type; adapter->OperStatus = info.oper_status; adapter->DnsSuffix = info.dns_suffix; - IP_ADAPTER_DNS_SERVER_ADDRESS* address; + IP_ADAPTER_DNS_SERVER_ADDRESS* address = NULL; for (size_t j = 0; !info.dns_server_addresses[j].empty(); ++j) { --num_addresses; if (j == 0) { |