From 8909d6ddfdbdde1bfe8416279a7eb121fe6880b9 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 22 Oct 2024 06:27:13 -0400 Subject: [PATCH] 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). --- src/svgtiny_css.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.49.0