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:
parent
cd94985fb7
commit
25afd931fc
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user