diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-11-30 00:53:43 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-11-30 10:29:46 +0100 |
commit | ce3ff8ec7d10913b8a8b328997bc5e0895c646d4 (patch) | |
tree | 151b96506539da40e337e5e0d62e84e3bbb0a554 | |
parent | 90d5c40e25ce847db9fcae9f22ec2eaa964bf370 (diff) | |
download | php-git-ce3ff8ec7d10913b8a8b328997bc5e0895c646d4.tar.gz |
php_tidy_create_node() expects a fixed set of node_types
This static function is not supposed to deal with arbitrary
`node_type`s, so there is no need to do so.
Closes GH-6467.
-rw-r--r-- | ext/tidy/tidy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c index 856a8a2f23..5b53f65578 100644 --- a/ext/tidy/tidy.c +++ b/ext/tidy/tidy.c @@ -770,9 +770,7 @@ static void php_tidy_create_node(INTERNAL_FUNCTION_PARAMETERS, tidy_base_nodetyp node = tidyGetBody(obj->ptdoc->doc); break; - default: - RETURN_NULL(); - break; + EMPTY_SWITCH_DEFAULT_CASE() } if (!node) { |