[Git][NTPsec/ntpsec][master] Make sure that all members of PyModuleDef struct are initialized.
Eric S. Raymond
gitlab at mg.gitlab.com
Sun Oct 23 16:08:47 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
138cdb36 by Matt Selsky at 2016-10-23T11:48:31-04:00
Make sure that all members of PyModuleDef struct are initialized.
Fixes GitLab issue #130
- - - - -
1 changed file:
- libntp/python_compatibility.h
Changes:
=====================================
libntp/python_compatibility.h
=====================================
--- a/libntp/python_compatibility.h
+++ b/libntp/python_compatibility.h
@@ -19,7 +19,7 @@
#define NTPSEC_PY_MODULE_DEF(mod, name, doc, methods) \
static struct PyModuleDef moduledef = { \
- PyModuleDef_HEAD_INIT, name, doc, -1, methods, }; \
+ PyModuleDef_HEAD_INIT, name, doc, -1, methods, NULL, NULL, NULL, NULL}; \
mod = PyModule_Create(&moduledef);
#define NTPSEC_PY_MODULE_ERROR_VAL NULL
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/138cdb36880744aeda0df1517722b7f3622289bb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161023/b9baa057/attachment.html>
More information about the vc
mailing list