[Bug 851954] Uninitialized variables in nsSVGFELightingElement::Filter r=Ms2ger
authorDavid Zbarsky <dzbarsky@gmail.com>
Sun, 17 Mar 2013 16:27:59 -0400
changeset 125152 ad3260c0c384f5f2682168ba735ce13363c11b60
parent 125151 533804c056bdde8d83650e528c6fd6f980822fd1
child 125153 f5bf6a0d04da0ac2bc73417824bd7cb593e1e18d
push id24781
push userdzbarsky@gmail.com
push dateSun, 17 Mar 2013 20:23:56 +0000
treeherdermozilla-inbound@ad3260c0c384 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger
bugs851954
milestone22.0a1
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 851954] Uninitialized variables in nsSVGFELightingElement::Filter r=Ms2ger
content/svg/content/src/nsSVGFilters.cpp
--- a/content/svg/content/src/nsSVGFilters.cpp
+++ b/content/svg/content/src/nsSVGFilters.cpp
@@ -3812,18 +3812,18 @@ nsSVGFELightingElement::Filter(nsSVGFilt
                                const Image* aTarget,
                                const nsIntRect& rect)
 {
   ScaleInfo info = SetupScalingFilter(instance, aSources[0], aTarget, rect,
                                       &mNumberPairAttributes[KERNEL_UNIT_LENGTH]);
   if (!info.mTarget)
     return NS_ERROR_FAILURE;
 
-  SVGFEDistantLightElement* distantLight;
-  SVGFEPointLightElement* pointLight;
+  SVGFEDistantLightElement* distantLight = nullptr;
+  SVGFEPointLightElement* pointLight = nullptr;
   nsCOMPtr<nsIDOMSVGFESpotLightElement> spotLight;
 
   nsIFrame* frame = GetPrimaryFrame();
   if (!frame) return NS_ERROR_FAILURE;
   nsStyleContext* style = frame->StyleContext();
 
   nscolor lightColor = style->StyleSVGReset()->mLightingColor;