diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-05 18:16:01 -0700 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-05 18:16:01 -0700 |
commit | 3466bde1cc113750450ffed028cc6fc7c95faedd (patch) | |
tree | 231febf716064e61b742a058c60da523c8b30fe3 /Objects/weakrefobject.c | |
parent | ad8c83ad6b91bebbc124c0c36e67b9836ca3d90f (diff) | |
download | cpython-git-3466bde1cc113750450ffed028cc6fc7c95faedd.tar.gz |
Avoid calling functions with an empty string as format string
Directly pass NULL rather than an empty string.
Diffstat (limited to 'Objects/weakrefobject.c')
-rw-r--r-- | Objects/weakrefobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c index f75b1e83a8..ab6b235255 100644 --- a/Objects/weakrefobject.c +++ b/Objects/weakrefobject.c @@ -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); \ } |