0
0
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:
Bram Moolenaar
2012-09-12 20:21:43 +02:00
parent fca93c093e
commit e8cdcef875
4 changed files with 24 additions and 7 deletions

View File

@@ -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;