From: Michael Drake Date: Wed, 26 Oct 2016 14:56:32 +0000 (+0100) Subject: Parse: Ensure consumed characters count is initiliased. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=1d2996a366f1b34ff114319087cf1989c96dc398;p=libsvgtiny.git Parse: Ensure consumed characters count is initiliased. --- 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)) ;