We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf35d71 commit e7e0a7dCopy full SHA for e7e0a7d
Include/pyexpat.h
@@ -67,9 +67,9 @@ struct PyExpat_CAPI {
67
static inline int
68
PyExpat_CheckCompatibility(struct PyExpat_CAPI *api)
69
{
70
+ assert(api != NULL);
71
return (
- api != NULL
72
- && strcmp(api->magic, PyExpat_CAPI_MAGIC) == 0
+ strcmp(api->magic, PyExpat_CAPI_MAGIC) == 0
73
&& (size_t)api->size >= sizeof(struct PyExpat_CAPI)
74
&& api->MAJOR_VERSION == XML_MAJOR_VERSION
75
&& api->MINOR_VERSION == XML_MINOR_VERSION
0 commit comments