forked from aniani/vim
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;
|
||||
char_u *new_dir;
|
||||
|
||||
if (_chdir == NULL)
|
||||
return NULL;
|
||||
if (!(r = PyObject_Call(_chdir, args, kwargs)))
|
||||
return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user