Skip to content

Commit e7e0a7d

Browse files
committed
NULL
1 parent cf35d71 commit e7e0a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Include/pyexpat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ struct PyExpat_CAPI {
6767
static inline int
6868
PyExpat_CheckCompatibility(struct PyExpat_CAPI *api)
6969
{
70+
assert(api != NULL);
7071
return (
71-
api != NULL
72-
&& strcmp(api->magic, PyExpat_CAPI_MAGIC) == 0
72+
strcmp(api->magic, PyExpat_CAPI_MAGIC) == 0
7373
&& (size_t)api->size >= sizeof(struct PyExpat_CAPI)
7474
&& api->MAJOR_VERSION == XML_MAJOR_VERSION
7575
&& api->MINOR_VERSION == XML_MINOR_VERSION

0 commit comments

Comments
 (0)