From: Michael Orlitzky Date: Tue, 22 Oct 2024 10:27:13 +0000 (-0400) Subject: Revert "src/svgtiny_css.c: fix uninitalized use in node_is_lang()" X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8909d6ddfdbdde1bfe8416279a7eb121fe6880b9;p=libsvgtiny.git Revert "src/svgtiny_css.c: fix uninitalized use in node_is_lang()" This reverts commit 29e40ed74de9f729755aa45459ff4f770b5be9ca. It's better to ensure that the function returning "match" does what it says it does (forthcoming). --- diff --git a/src/svgtiny_css.c b/src/svgtiny_css.c index d69fa5c..4856ac3 100644 --- a/src/svgtiny_css.c +++ b/src/svgtiny_css.c @@ -1796,10 +1796,7 @@ static css_error node_is_lang(void *pw, void *node, dom_exception d_err; dom_node *n; /* current node */ dom_node *p; /* parent node */ - - /* retval from node_has_attribute_substring(), must be - * initialized in case that function bails early */ - bool match = false; + bool match; /* retval from node_has_attribute_substring() */ /* Define the attribute name "lang" that we're looking for. * We only use a css_qname here because that's what the