From: Mark Dickinson Date: Wed, 20 Jan 2010 18:02:41 +0000 (+0000) Subject: Don't try to put a value into a NULL pointer. X-Git-Tag: v2.7a3~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=19428060139151e3047283f132e8baf16436745e;p=python Don't try to put a value into a NULL pointer. --- diff --git a/Python/dtoa.c b/Python/dtoa.c index 671d02795a..9e3c5d8240 100644 --- a/Python/dtoa.c +++ b/Python/dtoa.c @@ -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; }