The following patch fixes crash that on my system started to happen always when 
printing exceptions.

# HG changeset patch
# User ZyX <[email protected]>
# Date 1347093048 -14400
# Node ID 78b679bbe662f809323ea4127aa424627ab0d01d
# Parent  d6b78f099bfb0b347935765f333cdfe4a5bf0e59
Fix crash at exceptions

diff -r d6b78f099bfb -r 78b679bbe662 src/if_py_both.h
--- a/src/if_py_both.h  Fri Sep 07 08:11:51 2012 +0400
+++ b/src/if_py_both.h  Sat Sep 08 12:30:23 2012 +0400
@@ -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;
 

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
*** /tmp/extdiff.X__a6G/vim.d6b78f099bfb/src/if_py_both.h	2012-09-08 12:33:06.000000000 +0400
--- vim.78b679bbe662/src/if_py_both.h	2012-09-08 12:33:06.000000000 +0400
***************
*** 74,80 ****
      static PyObject *
  OutputWrite(PyObject *self, PyObject *args)
  {
!     Py_ssize_t len;
      char *str = NULL;
      int error = ((OutputObject *)(self))->error;
  
--- 74,80 ----
      static PyObject *
  OutputWrite(PyObject *self, PyObject *args)
  {
!     Py_ssize_t len = 0;
      char *str = NULL;
      int error = ((OutputObject *)(self))->error;
  

Raspunde prin e-mail lui