summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-12-13 21:21:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-12-13 21:21:43 (GMT)
commit3095d20a53e1ee2d45c037bffeae6acb1ea165dd (patch)
tree7ebc9b7201f602097c2d49306932b73a01e8fe2b /Include
parentdb9352f00f1d65e40e3e49d47becaf4dcb3d6f72 (diff)
downloadcpython-3095d20a53e1ee2d45c037bffeae6acb1ea165dd.zip
cpython-3095d20a53e1ee2d45c037bffeae6acb1ea165dd.tar.gz
cpython-3095d20a53e1ee2d45c037bffeae6acb1ea165dd.tar.bz2
initialize to NULL
Diffstat (limited to 'Include')
-rw-r--r--Include/datetime.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/datetime.h b/Include/datetime.h
index 0d310b4..490d5ca 100644
--- a/Include/datetime.h
+++ b/Include/datetime.h
@@ -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", \