mirror of
https://github.com/python/cpython.git
synced 2025-10-08 08:01:55 +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
|
@ -453,7 +453,7 @@ proxy_checkref(PyWeakReference *proxy)
|
|||
method(PyObject *proxy) { \
|
||||
_Py_IDENTIFIER(special); \
|
||||
UNWRAP(proxy); \
|
||||
return _PyObject_CallMethodId(proxy, &PyId_##special, ""); \
|
||||
return _PyObject_CallMethodId(proxy, &PyId_##special, NULL); \
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue