0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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)
This commit is contained in:
Bram Moolenaar
2013-06-05 20:34:15 +02:00
parent e60c2e5e1c
commit d4209d203a
2 changed files with 4 additions and 0 deletions

View File

@@ -718,6 +718,8 @@ _VimChdir(PyObject *_chdir, PyObject *args, PyObject *kwargs)
PyObject *todecref; PyObject *todecref;
char_u *new_dir; char_u *new_dir;
if (_chdir == NULL)
return NULL;
if (!(r = PyObject_Call(_chdir, args, kwargs))) if (!(r = PyObject_Call(_chdir, args, kwargs)))
return NULL; return NULL;

View File

@@ -728,6 +728,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1124,
/**/ /**/
1123, 1123,
/**/ /**/