Bug 1025212 - Initialize 'last' to silence a static analyzer warning. r=dholbert

This commit is contained in:
Mats Palmgren 2014-06-24 17:52:18 +00:00
parent b11804bb36
commit f640b8d77d

View File

@ -3509,7 +3509,8 @@ PredictScaleForContent(nsIFrame* aFrame, nsIFrame* aAncestorWithScale,
gfxSize
FrameLayerBuilder::GetThebesLayerScaleForFrame(nsIFrame* aFrame)
{
nsIFrame* last;
MOZ_ASSERT(aFrame, "need a frame");
nsIFrame* last = nullptr;
for (nsIFrame* f = aFrame; f; f = nsLayoutUtils::GetCrossDocParentFrame(f)) {
last = f;