Commit 3095d20a authored by Benjamin Peterson's avatar Benjamin Peterson

initialize to NULL

parent db9352f0
...@@ -183,7 +183,7 @@ typedef struct { ...@@ -183,7 +183,7 @@ typedef struct {
#else #else
/* Define global variable for the C API and a macro for setting it. */ /* 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 \ #define PyDateTime_IMPORT \
PyDateTimeAPI = (PyDateTime_CAPI*) PyCObject_Import("datetime", \ PyDateTimeAPI = (PyDateTime_CAPI*) PyCObject_Import("datetime", \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment