]> granicus.if.org Git - python/commitdiff
initialize to NULL
authorBenjamin Peterson <benjamin@python.org>
Sun, 13 Dec 2009 21:21:43 +0000 (21:21 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 13 Dec 2009 21:21:43 +0000 (21:21 +0000)
Include/datetime.h

index 0d310b47a18e8fcd7ccca36376141963f905950b..490d5ca31178d8539731a1e56449a6b39c1906fd 100644 (file)
@@ -183,7 +183,7 @@ typedef struct {
 #else
 
 /* Define global variable for the C API and a macro for setting it. */
-static PyDateTime_CAPI *PyDateTimeAPI;
+static PyDateTime_CAPI *PyDateTimeAPI = NULL;
 
 #define PyDateTime_IMPORT \
         PyDateTimeAPI = (PyDateTime_CAPI*) PyCObject_Import("datetime", \