summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2016-10-26 14:56:32 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2016-10-26 14:56:32 (GMT)
commit1d2996a366f1b34ff114319087cf1989c96dc398 (patch)
tree7d6a8e5bd41d8721c30af3b3ba9d196af341241c
parent1e71d0472529b96ac35e2e4425b66e29146a01c1 (diff)
downloadlibsvgtiny-1d2996a366f1b34ff114319087cf1989c96dc398.tar.gz
libsvgtiny-1d2996a366f1b34ff114319087cf1989c96dc398.tar.bz2
Parse: Ensure consumed characters count is initiliased.
-rw-r--r--src/svgtiny.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c
index efac788..4661a58 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -1589,6 +1589,7 @@ void svgtiny_parse_transform(char *s, float *ma, float *mb,
a = d = 1;
b = c = 0;
e = f = 0;
+ n = 0;
if ((sscanf(s, " matrix (%f %f %f %f %f %f ) %n",
&a, &b, &c, &d, &e, &f, &n) == 6) && (n > 0))
;