Skip to content

Commit 54be265

Browse files
committed
Remove always-true condition in process_numeric_entity()
1 parent ddedd15 commit 54be265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/html.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ static inline int process_numeric_entity(const char **buf, unsigned *code_point)
677677
int hexadecimal = (**buf == 'x' || **buf == 'X'); /* TODO: XML apparently disallows "X" */
678678
char *endptr;
679679

680-
if (hexadecimal && (**buf != '\0'))
680+
if (hexadecimal)
681681
(*buf)++;
682682

683683
/* strtol allows whitespace and other stuff in the beginning

0 commit comments

Comments
 (0)