[Python-checkins] r76822 - python/trunk/Include/datetime.h

benjamin.peterson python-checkins at python.org
Sun Dec 13 22:21:43 CET 2009


Author: benjamin.peterson
Date: Sun Dec 13 22:21:43 2009
New Revision: 76822

Log:
initialize to NULL

Modified:
   python/trunk/Include/datetime.h

Modified: python/trunk/Include/datetime.h
==============================================================================
--- python/trunk/Include/datetime.h	(original)
+++ python/trunk/Include/datetime.h	Sun Dec 13 22:21:43 2009
@@ -183,7 +183,7 @@
 #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", \


More information about the Python-checkins mailing list