[Python-checkins] r77615 - python/trunk/Python/dtoa.c

mark.dickinson python-checkins at python.org
Wed Jan 20 19:02:42 CET 2010


Author: mark.dickinson
Date: Wed Jan 20 19:02:41 2010
New Revision: 77615

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

Modified:
   python/trunk/Python/dtoa.c

Modified: python/trunk/Python/dtoa.c
==============================================================================
--- python/trunk/Python/dtoa.c	(original)
+++ python/trunk/Python/dtoa.c	Wed Jan 20 19:02:41 2010
@@ -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;
     }
 


More information about the Python-checkins mailing list