diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-01-20 18:02:41 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-01-20 18:02:41 (GMT) |
commit | 19428060139151e3047283f132e8baf16436745e (patch) | |
tree | e98effa8498f5fe843517ab080ffe0eb39c4cbf8 /Python | |
parent | 4141d65fb7eacccee58b2fa462b56a2410e67777 (diff) | |
download | cpython-19428060139151e3047283f132e8baf16436745e.zip cpython-19428060139151e3047283f132e8baf16436745e.tar.gz cpython-19428060139151e3047283f132e8baf16436745e.tar.bz2 |
Don't try to put a value into a NULL pointer.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/dtoa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/dtoa.c b/Python/dtoa.c index 671d027..9e3c5d8 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; } |