diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-05 20:34:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-05 20:34:15 +0200 |
commit | d4209d203ac77e8c9debcc152557d80b4357aaae (patch) | |
tree | 686e17bb593a822d06b20d83d0e27469738aa0eb /src | |
parent | e60c2e5e1c8df565076c392c3052c34078fda777 (diff) | |
download | vim-d4209d203ac77e8c9debcc152557d80b4357aaae.zip |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/if_py_both.h | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index 945efe60b..ae2c6bc96 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -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; diff --git a/src/version.c b/src/version.c index cfe0b22bf..40f3df861 100644 --- 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, |