Bug 1232596 - initialize variable changed = false, flagged by Coverity. r=dbaron
authorBogdan Postelnicu <bogdan.postelnicu>
Tue, 15 Dec 2015 00:41:00 +0100
changeset 315802 1f2dd09046144ec617ce1ceba970699f0f8043fc
parent 315801 094fd5a4d3dced8b18c171fa47453e823f387de6
child 315803 d74d1e794421ff31fc433a8a0bc19b4cfc0153ab
push id8468
push userhurley@todesschaf.org
push dateWed, 16 Dec 2015 19:25:06 +0000
reviewersdbaron
bugs1232596
milestone46.0a1
Bug 1232596 - initialize variable changed = false, flagged by Coverity. r=dbaron
layout/style/nsCSSParser.cpp
--- a/layout/style/nsCSSParser.cpp
+++ b/layout/style/nsCSSParser.cpp
@@ -6427,17 +6427,17 @@ CSSParserImpl::ParseDeclarationBlock(uin
       REPORT_UNEXPECTED_TOKEN(PEBadDeclBlockStart);
       OUTPUT_ERROR();
       return nullptr;
     }
   }
   RefPtr<css::Declaration> declaration = new css::Declaration();
   mData.AssertInitialState();
   for (;;) {
-    bool changed;
+    bool changed = false;
     if (!ParseDeclaration(declaration, aFlags, true, &changed, aContext)) {
       if (!SkipDeclaration(checkForBraces)) {
         break;
       }
       if (checkForBraces) {
         if (ExpectSymbol('}', true)) {
           break;
         }