Kaydet (Commit) 460ce2ab authored tarafından Barry Warsaw's avatar Barry Warsaw

Apply Martin's patch for bug 3685, Crash while compiling Python 3000 in

OpenBSD 4.4.
üst 9b6df6af
...@@ -1387,7 +1387,7 @@ makepathobject(const wchar_t *path, wchar_t delim) ...@@ -1387,7 +1387,7 @@ makepathobject(const wchar_t *path, wchar_t delim)
for (i = 0; ; i++) { for (i = 0; ; i++) {
p = wcschr(path, delim); p = wcschr(path, delim);
if (p == NULL) if (p == NULL)
p = wcschr(path, L'\0'); /* End of string */ p = path + wcslen(path); /* End of string */
w = PyUnicode_FromWideChar(path, (Py_ssize_t)(p - path)); w = PyUnicode_FromWideChar(path, (Py_ssize_t)(p - path));
if (w == NULL) { if (w == NULL) {
Py_DECREF(v); Py_DECREF(v);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment