diff Python/dtoa.c @ 58420:5dbbc43c591b legacy-trunk

Don't try to put a value into a NULL pointer.
author Mark Dickinson <dickinsm@gmail.com>
date Wed, 20 Jan 2010 18:02:41 +0000
parents bac821dffea8
children 886320f1ba82
line wrap: on
line diff
--- a/Python/dtoa.c	Wed Jan 20 17:36:31 2010 +0000
+++ b/Python/dtoa.c	Wed Jan 20 18:02:41 2010 +0000
@@ -1485,7 +1485,8 @@
        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;
     }