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 id17673
push userdholbert@mozilla.com
push dateTue, 21 Dec 2010 23:04:38 +0000
treeherdermozilla-central@52b229f6a051 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt, roc
bugs620358
milestone2.0b9pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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!