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:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user