]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.1124 v7.3.1124
authorBram Moolenaar <Bram@vim.org>
Wed, 5 Jun 2013 18:34:15 +0000 (20:34 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 5 Jun 2013 18:34:15 +0000 (20:34 +0200)
Problem:    Python: Crash on MS-Windows when os.fchdir() is not available.
Solution:   Check for _chdir to be NULL. (Ken Takata)

src/if_py_both.h
src/version.c

index 945efe60b67d380ef434689bbf46e3b3113d5ce9..ae2c6bc968792aa67134c333d5c59122f6b45666 100644 (file)
@@ -718,6 +718,8 @@ _VimChdir(PyObject *_chdir, PyObject *args, PyObject *kwargs)
     PyObject   *todecref;
     char_u     *new_dir;
 
+    if (_chdir == NULL)
+       return NULL;
     if (!(r = PyObject_Call(_chdir, args, kwargs)))
        return NULL;
 
index cfe0b22bf4871cadfbc8ddd0a1a13e142f85f844..40f3df861718b49fc8d5512478a732adcd621519 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1124,
 /**/
     1123,
 /**/