Don't try to put a value into a NULL pointer.

This commit is contained in:
Mark Dickinson 2010-01-20 18:02:41 +00:00
parent 4141d65fb7
commit 1942806013
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}