Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(683)

Unified Diff: Source/core/css/parser/MediaQueryParser.cpp

Issue 340503002: Initialize all CSSParserValue's variables (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another CSSParserValue uninit var Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSParserValues.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/MediaQueryParser.cpp
diff --git a/Source/core/css/parser/MediaQueryParser.cpp b/Source/core/css/parser/MediaQueryParser.cpp
index bc7fba6e6096d7b8533f998a08cbea92ab19c427..63b720cfe4ba527243e886972aaa78235e74c19e 100644
--- a/Source/core/css/parser/MediaQueryParser.cpp
+++ b/Source/core/css/parser/MediaQueryParser.cpp
@@ -243,6 +243,8 @@ void MediaQueryData::addParserValue(MediaQueryTokenType type, const MediaQueryTo
} else if (type == DelimiterToken) {
value.unit = CSSParserValue::Operator;
value.iValue = token.delimiter();
+ value.id = CSSValueInvalid;
+ value.isInt = false;
} else {
CSSParserFunction* function = new CSSParserFunction;
function->name.init(token.value());
« no previous file with comments | « Source/core/css/CSSParserValues.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698