Bug 620358 - Fix uninitialized variable warning in SVGAnimated{PathSeg|Point}List::SetBaseValueString; r=jwatt a=roc
authorMs2ger <ms2ger@gmail.com>
Tue, 21 Dec 2010 15:03:01 -0800
changeset 59579 0257a5a7419adac83e1b99b3220bbad563e528a7
parent 59578 c544c99fad5ac09c0d4b0a778d511ee0292cf673
child 59580 438d6a2f3a9ccc09c6c02a2e872d6b72454f5600
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersjwatt, roc
bugs620358
milestone2.0b9pre
Bug 620358 - Fix uninitialized variable warning in SVGAnimated{PathSeg|Point}List::SetBaseValueString; r=jwatt a=roc
content/svg/content/src/SVGAnimatedPathSegList.cpp
content/svg/content/src/SVGAnimatedPointList.cpp
--- a/content/svg/content/src/SVGAnimatedPathSegList.cpp
+++ b/content/svg/content/src/SVGAnimatedPathSegList.cpp
@@ -65,17 +65,17 @@ SVGAnimatedPathSegList::SetBaseValueStri
   // DOMSVGPathSegList::InternalListWillChangeTo().
 
   DOMSVGPathSegList *baseValWrapper =
     DOMSVGPathSegList::GetDOMWrapperIfExists(GetBaseValKey());
   if (baseValWrapper) {
     baseValWrapper->InternalListWillChangeTo(newBaseValue);
   }
 
-  DOMSVGPathSegList *animValWrapper;
+  DOMSVGPathSegList* animValWrapper = nsnull;
   if (!IsAnimating()) {  // DOM anim val wraps our base val too!
     animValWrapper = DOMSVGPathSegList::GetDOMWrapperIfExists(GetAnimValKey());
     if (animValWrapper) {
       animValWrapper->InternalListWillChangeTo(newBaseValue);
     }
   }
 
   // Only now may we modify mBaseVal!
--- a/content/svg/content/src/SVGAnimatedPointList.cpp
+++ b/content/svg/content/src/SVGAnimatedPointList.cpp
@@ -65,17 +65,17 @@ SVGAnimatedPointList::SetBaseValueString
   // DOMSVGPointList::InternalListWillChangeTo().
 
   DOMSVGPointList *baseValWrapper =
     DOMSVGPointList::GetDOMWrapperIfExists(GetBaseValKey());
   if (baseValWrapper) {
     baseValWrapper->InternalListWillChangeTo(newBaseValue);
   }
 
-  DOMSVGPointList *animValWrapper;
+  DOMSVGPointList* animValWrapper = nsnull;
   if (!IsAnimating()) {  // DOM anim val wraps our base val too!
     animValWrapper = DOMSVGPointList::GetDOMWrapperIfExists(GetAnimValKey());
     if (animValWrapper) {
       animValWrapper->InternalListWillChangeTo(newBaseValue);
     }
   }
 
   // Only now may we modify mBaseVal!