mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
initialize to NULL
This commit is contained in:
parent
db9352f00f
commit
3095d20a53
1 changed files with 1 additions and 1 deletions
|
@ -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", \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue