Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1428)

Unified Diff: Source/core/svg/SVGFontFaceSrcElement.cpp

Issue 209433004: Do not zero-initialize RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix uses of RefPtrWillBeRawPtr Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGFontFaceSrcElement.cpp
diff --git a/Source/core/svg/SVGFontFaceSrcElement.cpp b/Source/core/svg/SVGFontFaceSrcElement.cpp
index f1cd5a5e7d0d2b9bfe7576ed150ab4349911e420..0aa96e5ea6aac03f11f51e154e698d1b7d5419c8 100644
--- a/Source/core/svg/SVGFontFaceSrcElement.cpp
+++ b/Source/core/svg/SVGFontFaceSrcElement.cpp
@@ -49,7 +49,7 @@ PassRefPtrWillBeRawPtr<CSSValueList> SVGFontFaceSrcElement::srcValue() const
{
RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparated();
for (SVGElement* element = Traversal<SVGElement>::firstChild(*this); element; element = Traversal<SVGElement>::nextSibling(*element)) {
- RefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue;
+ RefPtrWillBeRawPtr<CSSFontFaceSrcValue> srcValue = nullptr;
if (isSVGFontFaceUriElement(*element))
srcValue = toSVGFontFaceUriElement(*element).srcValue();
else if (isSVGFontFaceNameElement(*element))

Powered by Google App Engine
This is Rietveld 408576698