mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Don't try to put a value into a NULL pointer.
This commit is contained in:
parent
4141d65fb7
commit
1942806013
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue