mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Avoid calling functions with an empty string as format string
Directly pass NULL rather than an empty string.
This commit is contained in:
parent
ad8c83ad6b
commit
3466bde1cc
13 changed files with 34 additions and 34 deletions
|
@ -2306,7 +2306,7 @@ PyCurses_GetWin(PyCursesWindowObject *self, PyObject *stream)
|
|||
goto error;
|
||||
}
|
||||
|
||||
data = _PyObject_CallMethodId(stream, &PyId_read, "");
|
||||
data = _PyObject_CallMethodId(stream, &PyId_read, NULL);
|
||||
if (data == NULL)
|
||||
goto error;
|
||||
if (!PyBytes_Check(data)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue