diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-09-06 01:16:01 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-09-06 01:16:01 (GMT) |
commit | 3466bde1cc113750450ffed028cc6fc7c95faedd (patch) | |
tree | 231febf716064e61b742a058c60da523c8b30fe3 /Modules/_sqlite/cursor.c | |
parent | ad8c83ad6b91bebbc124c0c36e67b9836ca3d90f (diff) | |
download | cpython-3466bde1cc113750450ffed028cc6fc7c95faedd.zip cpython-3466bde1cc113750450ffed028cc6fc7c95faedd.tar.gz cpython-3466bde1cc113750450ffed028cc6fc7c95faedd.tar.bz2 |
Avoid calling functions with an empty string as format string
Directly pass NULL rather than an empty string.
Diffstat (limited to 'Modules/_sqlite/cursor.c')
-rw-r--r-- | Modules/_sqlite/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sqlite/cursor.c b/Modules/_sqlite/cursor.c index 98eb961..e2c7a34 100644 --- a/Modules/_sqlite/cursor.c +++ b/Modules/_sqlite/cursor.c @@ -143,7 +143,7 @@ PyObject* _pysqlite_get_converter(PyObject* key) PyObject* retval; _Py_IDENTIFIER(upper); - upcase_key = _PyObject_CallMethodId(key, &PyId_upper, ""); + upcase_key = _PyObject_CallMethodId(key, &PyId_upper, NULL); if (!upcase_key) { return NULL; } |