aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental
diff options
context:
space:
mode:
authorGravatar Kevin Lubick <kjlubick@google.com>2018-01-05 10:11:11 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-01-05 18:03:25 +0000
commit4284613cfe211bfdcf3506f363d382c044ae8b51 (patch)
tree1004283289d9e70c786dd01702c8a8b144aa5932 /experimental
parent4c79ecf2f493c0eaa4f58cf0bb086d61ea2aebcb (diff)
Enable conditional-uninitialized flag
Bug: skia:7462 Cq-Include-Trybots: skia.primary:Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-SKNX_NO_SIMD Change-Id: I1c0a09984bf28a5c620a89af56040f018bae6310 Reviewed-on: https://skia-review.googlesource.com/90941 Commit-Queue: Kevin Lubick <kjlubick@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'experimental')
-rw-r--r--experimental/svg/model/SkSVGAttributeParser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/experimental/svg/model/SkSVGAttributeParser.cpp b/experimental/svg/model/SkSVGAttributeParser.cpp
index 40a3f1a4a9..dc328a1cf6 100644
--- a/experimental/svg/model/SkSVGAttributeParser.cpp
+++ b/experimental/svg/model/SkSVGAttributeParser.cpp
@@ -315,7 +315,7 @@ bool SkSVGAttributeParser::parseMatrixToken(SkMatrix* matrix) {
bool SkSVGAttributeParser::parseTranslateToken(SkMatrix* matrix) {
return this->parseParenthesized("translate", [this](SkMatrix* m) -> bool {
- SkScalar tx, ty;
+ SkScalar tx = 0.0, ty = 0.0;
this->parseWSToken();
if (!this->parseScalarToken(&tx)) {
return false;
@@ -332,7 +332,7 @@ bool SkSVGAttributeParser::parseTranslateToken(SkMatrix* matrix) {
bool SkSVGAttributeParser::parseScaleToken(SkMatrix* matrix) {
return this->parseParenthesized("scale", [this](SkMatrix* m) -> bool {
- SkScalar sx, sy;
+ SkScalar sx = 0.0, sy = 0.0;
if (!this->parseScalarToken(&sx)) {
return false;
}