]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
Parse: Remove explicit init of gradient state; gets memset anyway.
authorMichael Drake <tlsa@netsurf-browser.org>
Wed, 26 Oct 2016 13:15:28 +0000 (14:15 +0100)
committerMichael Drake <tlsa@netsurf-browser.org>
Wed, 26 Oct 2016 13:15:28 +0000 (14:15 +0100)
src/svgtiny.c

index bd9aeaa89486ddc873249744feed390d78042801..ec15b35496282dbe823f00a661b22a099e134551 100644 (file)
@@ -152,11 +152,6 @@ svgtiny_code svgtiny_parse(struct svgtiny_diagram *diagram,
 
        UNUSED(url);
 
-       state.gradient_x1 = NULL;
-       state.gradient_y1 = NULL;
-       state.gradient_x2 = NULL;
-       state.gradient_y2 = NULL;
-
        parser = dom_xml_parser_create(NULL, NULL,
                                       ignore_msg, NULL, &document);