summaryrefslogtreecommitdiffstats
path: root/Include/datetime.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-12-13 21:30:54 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-12-13 21:30:54 (GMT)
commit91d58bd14640caa2aacd9ebc33569d92de448920 (patch)
tree529025110445025e2c44ed9cbc81a10a7c1679ae /Include/datetime.h
parent5f4ec0451cdaf2196f87894df91b50b39e0be05c (diff)
downloadcpython-91d58bd14640caa2aacd9ebc33569d92de448920.zip
cpython-91d58bd14640caa2aacd9ebc33569d92de448920.tar.gz
cpython-91d58bd14640caa2aacd9ebc33569d92de448920.tar.bz2
Merged revisions 76822,76824 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r76822 | benjamin.peterson | 2009-12-13 15:21:43 -0600 (Sun, 13 Dec 2009) | 1 line initialize to NULL ........ r76824 | benjamin.peterson | 2009-12-13 15:27:53 -0600 (Sun, 13 Dec 2009) | 1 line add a test of loading the datetime capi ........
Diffstat (limited to 'Include/datetime.h')
-rw-r--r--Include/datetime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/datetime.h b/Include/datetime.h
index 4b506b2..d14ead1 100644
--- a/Include/datetime.h
+++ b/Include/datetime.h
@@ -182,7 +182,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 *)PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0)