# HG changeset patch # User Bram Moolenaar # Date 1370457255 -7200 # Node ID be1e4acb30cab46ab439e45b9b6871a7aff23800 # Parent bdbd0101b888830105aa263738a97be31a63072e 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) diff --git a/src/if_py_both.h b/src/if_py_both.h --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -718,6 +718,8 @@ VimStrwidth(PyObject *self UNUSED, PyObj 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 --- 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,