mirror of https://github.com/python/cpython.git
initialize to NULL
This commit is contained in:
parent
db9352f00f
commit
3095d20a53
|
@ -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", \
|
||||||
|
|
Loading…
Reference in New Issue