]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Parse: Ensure consumed characters count is initiliased.
authorMichael Drake <tlsa@netsurf-browser.org>
Wed, 26 Oct 2016 14:56:32 +0000 (15:56 +0100)
committerMichael Drake <tlsa@netsurf-browser.org>
Wed, 26 Oct 2016 14:56:32 +0000 (15:56 +0100)
src/svgtiny.c

index efac78882da2185d0cfea1b13a880f994bc72d83..4661a58a2dffb17db793d22f9cff275575cec120 100644 (file)
@@ -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))
                        ;