mirror of https://github.com/python/cpython
Don't try to put a value into a NULL pointer.
This commit is contained in:
parent
4141d65fb7
commit
1942806013
|
@ -1485,7 +1485,8 @@ _Py_dg_strtod(const char *s00, char **se)
|
|||
gives the total number of digits ignoring leading zeros. A valid input
|
||||
must have at least one digit. */
|
||||
if (!nd && !lz) {
|
||||
*se = (char *)s00;
|
||||
if (se)
|
||||
*se = (char *)s00;
|
||||
goto parse_error;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue