]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
src/svgtiny_css.c: add a missing break statement
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jan 2024 01:20:59 +0000 (20:20 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 26 Jan 2024 01:20:59 +0000 (20:20 -0500)
Otherwise, we fall through to an assert(false) in the default
case. Thanks to Michael Drake for the suggestion.

src/svgtiny_css.c

index 6eefd87999ed561af6d16a7c44830f3ef5c4417c..9416f1fecc797044d7c38ad3fb503adb904185a2 100644 (file)
@@ -1953,6 +1953,7 @@ static void svgtiny_dom_user_data_handler(dom_node_operation operation,
                        css_libcss_node_data_handler(&svgtiny_select_handler,
                                                CSS_NODE_DELETED,
                                                NULL, src, NULL, data);
+                       break;
                default:
                        /* Our list of cases should have been exhaustive */
                        assert(false);