mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +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
|
@ -192,7 +192,7 @@ static PyObject* module_register_converter(PyObject* self, PyObject* args)
|
|||
}
|
||||
|
||||
/* convert the name to upper case */
|
||||
name = _PyObject_CallMethodId(orig_name, &PyId_upper, "");
|
||||
name = _PyObject_CallMethodId(orig_name, &PyId_upper, NULL);
|
||||
if (!name) {
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue