1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix static analysis warning

The condition is already checked at the start of the function, mark this
code properly as unreachable.
This commit is contained in:
Niels Dossche
2024-10-30 20:55:48 +01:00
parent 1b6320b0f5
commit 65fbf47472

View File

@@ -500,7 +500,7 @@ static void dom_insert_node_list_cleanup(xmlNodePtr node)
xmlFreeNode(node);
} else {
/* Must have been a directly-passed node. */
ZEND_ASSERT(node->_private != NULL);
ZEND_UNREACHABLE();
}
}