We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ef400 commit f8cbd79Copy full SHA for f8cbd79
Modules/getpath.c
@@ -261,7 +261,7 @@ getpath_joinpath(PyObject *Py_UNUSED(self), PyObject *args)
261
}
262
Py_ssize_t n = PyTuple_GET_SIZE(args);
263
if (n == 0) {
264
- return PyUnicode_FromString(NULL);
+ return PyUnicode_FromStringAndSize(NULL, 0);
265
266
/* Convert all parts to wchar and accumulate max final length */
267
wchar_t **parts = (wchar_t **)PyMem_Malloc(n * sizeof(wchar_t *));
0 commit comments