diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-23 01:49:33 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-23 01:49:33 +0000 |
commit | 589c93ffd0947d459f41d9ea68a6ec331678e891 (patch) | |
tree | 6bae1c8ce825799ecc299407173f12b68db55b2e /net | |
parent | d39701a7c22e03d899d1451003b0d853063fc27a (diff) | |
download | chromium_src-589c93ffd0947d459f41d9ea68a6ec331678e891.zip chromium_src-589c93ffd0947d459f41d9ea68a6ec331678e891.tar.gz chromium_src-589c93ffd0947d459f41d9ea68a6ec331678e891.tar.bz2 |
Reorder some statements to fix compile warning on Linux canary.
Review URL: http://codereview.chromium.org/515008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35199 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/tools/tld_cleanup/tld_cleanup.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tools/tld_cleanup/tld_cleanup.cc b/net/tools/tld_cleanup/tld_cleanup.cc index df75b41..8a427ca 100644 --- a/net/tools/tld_cleanup/tld_cleanup.cc +++ b/net/tools/tld_cleanup/tld_cleanup.cc @@ -118,8 +118,6 @@ NormalizeResult NormalizeRule(std::string* domain, Rule* rule) { } // Allow single leading '*.' or '!', saved here so it's not canonicalized. - rule->wildcard = false; - rule->exception = false; size_t start_offset = 0; if (domain->at(0) == '!') { domain->erase(0, 1); @@ -195,6 +193,8 @@ NormalizeResult NormalizeFile(const FilePath& in_filename, domain.assign(data.data(), line_start, line_end - line_start); Rule rule; + rule.wildcard = false; + rule.exception = false; NormalizeResult new_result = NormalizeRule(&domain, &rule); if (new_result != kError) { // Check the existing rules to make sure we don't have an exception and |