summaryrefslogtreecommitdiff
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-30 12:51:22 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-30 12:51:22 +0100
commitde5b3800427328170574f1950ae75776e020f4e7 (patch)
treef9457efd3e997c8d2d75cd9bda38cc8a3201b6fc /src/if_py_both.h
parentbfd36036700ab2d4c9de48e37f222f4a4dd7b3b0 (diff)
downloadvim-git-de5b3800427328170574f1950ae75776e020f4e7.tar.gz
patch 8.1.1075: function reference count wrong in Python codev8.1.1075
Problem: Function reference count wrong in Python code. Solution: Use "O" instead of "N" for the arguments. (Ben Jackson, closes #4188)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r--src/if_py_both.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index b27f93e49..20affe31d 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -1210,7 +1210,7 @@ FinderFindSpec(PyObject *self, PyObject *args)
if (!(paths = Vim_GetPaths(self)))
return NULL;
- spec = PyObject_CallFunction(py_find_spec, "sNN", fullname, paths, target);
+ spec = PyObject_CallFunction(py_find_spec, "sOO", fullname, paths, target);
Py_DECREF(paths);