1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-24 06:50:08 +03:00

xmlschemastypes: Remove unreachable if statement

Pointer `cur` is created by `value` variable and there is no
need to check `cur` for NULL because of `value` is checked
in the beginning of function.

Found by RASU JSC.
This commit is contained in:
Maks Mishin 2024-02-29 01:29:42 +03:00 committed by Nick Wellnhofer
parent cd94985fb7
commit 25afd931fc

View File

@ -3479,8 +3479,6 @@ xmlSchemaValAtomicType(xmlSchemaTypePtr type, const xmlChar * value,
const xmlChar *cur = value;
unsigned long lo, mi, hi;
if (cur == NULL)
goto return1;
if (normOnTheFly)
while IS_WSP_BLANK_CH(*cur) cur++;
ret = xmlSchemaParseUInt(&cur, &lo, &mi, &hi);