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

View file

@ -1485,6 +1485,7 @@ _Py_dg_strtod(const char *s00, char **se)
gives the total number of digits ignoring leading zeros. A valid input gives the total number of digits ignoring leading zeros. A valid input
must have at least one digit. */ must have at least one digit. */
if (!nd && !lz) { if (!nd && !lz) {
if (se)
*se = (char *)s00; *se = (char *)s00;
goto parse_error; goto parse_error;
} }