Skip to content

Fix ignored error returns in sys initialization, _ctypes and _interpchannels - #160614

Open
StanFromIreland wants to merge 2 commits into
python:mainfrom
StanFromIreland:little-fixes
Open

StanFromIreland wants to merge 2 commits into
python:mainfrom
StanFromIreland:little-fixes

Conversation

@StanFromIreland

Copy link
Copy Markdown
Member

A few more like those found in #160213.

Comment thread Modules/_ctypes/_ctypes.c
return -1;
}
/* We are creating the type for the OTHER endian */
sw_info->format = _ctypes_alloc_format_string(">", stginfo->format+1);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also fail and we're not checking the return value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants