mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.661
Problem: SEGV in Python code. Solution: Initialize len to zero. Use the right function depending on version. (Maxim Philippov)
This commit is contained in:
@@ -74,7 +74,7 @@ static struct PyMethodDef OutputMethods[] = {
|
||||
static PyObject *
|
||||
OutputWrite(PyObject *self, PyObject *args)
|
||||
{
|
||||
Py_ssize_t len;
|
||||
Py_ssize_t len = 0;
|
||||
char *str = NULL;
|
||||
int error = ((OutputObject *)(self))->error;
|
||||
|
||||
|
Reference in New Issue
Block a user