Commit 85589d2c authored by yoz@chromium.org's avatar yoz@chromium.org

Fix (unexpected) use of uninitialized boolean in parsing of Content-Type.

BUG=112155
TBR=battre@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10834190

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150146 0039d316-1c4b-4281-b951-d872f2087c98
parent 8ff1963e
...@@ -198,7 +198,7 @@ bool WebRequestConditionAttributeContentType::IsFulfilled( ...@@ -198,7 +198,7 @@ bool WebRequestConditionAttributeContentType::IsFulfilled(
net::HttpRequestHeaders::kContentType, &content_type); net::HttpRequestHeaders::kContentType, &content_type);
std::string mime_type; std::string mime_type;
std::string charset; std::string charset;
bool had_charset; bool had_charset = false;
net::HttpUtil::ParseContentType( net::HttpUtil::ParseContentType(
content_type, &mime_type, &charset, &had_charset, NULL); content_type, &mime_type, &charset, &had_charset, NULL);
......
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