Skip to content

Commit 1e93d61

Browse files
committed
Add assertion
1 parent 8785e14 commit 1e93d61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/dom/lexbor/lexbor/selectors-adapted/selectors.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
/* Note: assumes a != b */
3232
static zend_always_inline bool lxb_selectors_adapted_cmp_nullable_string_a_neq_b(const char *a, const char *b)
3333
{
34+
ZEND_ASSERT(a != b);
3435
if (a == NULL || b == NULL) {
3536
return false; /* We know that they can't be both NULL because a != b. */
3637
}

0 commit comments

Comments
 (0)