commit | e8cdcef87575cacbc9dd977de076af76e4405410 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Sep 12 20:21:43 2012 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Sep 12 20:21:43 2012 +0200 |
tree | fad755d283aa655a961f5c9a7ec76b5fe56d0533 | |
parent | fca93c093e0ec86331171ca4e169f73aa81ebfef [diff] [blame] |
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)
diff --git a/src/if_py_both.h b/src/if_py_both.h index 0031003..5e12638 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h
@@ -74,7 +74,7 @@ static PyObject * OutputWrite(PyObject *self, PyObject *args) { - Py_ssize_t len; + Py_ssize_t len = 0; char *str = NULL; int error = ((OutputObject *)(self))->error;