initialize to NULL

This commit is contained in:
Benjamin Peterson 2009-12-13 21:21:43 +00:00
parent db9352f00f
commit 3095d20a53
1 changed files with 1 additions and 1 deletions

View 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", \