changeset 4754:be1e4acb30ca v7.3.1124

updated for version 7.3.1124 Problem: Python: Crash on MS-Windows when os.fchdir() is not available. Solution: Check for _chdir to be NULL. (Ken Takata)
author Bram Moolenaar <bram@vim.org>
date Wed, 05 Jun 2013 20:34:15 +0200
parents bdbd0101b888
children 10fbb2fa2646
files src/if_py_both.h src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -718,6 +718,8 @@ VimStrwidth(PyObject *self UNUSED, PyObj
     PyObject	*todecref;
     char_u	*new_dir;
 
+    if (_chdir == NULL)
+	return NULL;
     if (!(r = PyObject_Call(_chdir, args, kwargs)))
 	return NULL;
 
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1124,
+/**/
     1123,
 /**/
     1122,