Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e53ca14

Browse filesBrowse files
authored
Merge pull request #13287 from cgohlke/patch-1
Fix unsafe use of NULL pointer
2 parents c52ffa3 + bdb5500 commit e53ca14
Copy full SHA for e53ca14

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎src/file_compat.h

Copy file name to clipboardExpand all lines: src/file_compat.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static NPY_INLINE FILE *mpl_PyFile_Dup(PyObject *file, char *mode, mpl_off_t *or
9595
#endif
9696
if (handle == NULL) {
9797
PyErr_SetString(PyExc_IOError, "Getting a FILE* from a Python file object failed");
98+
return NULL;
9899
}
99100

100101
/* Record the original raw file handle position */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.