mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Do not check isabs() on Windows. (gh-28584)
I missed this in gh-28550. https://bugs.python.org/issue45211
This commit is contained in:
parent
ae7839bbe8
commit
16b5bc6896
1 changed files with 2 additions and 0 deletions
|
@ -2138,7 +2138,9 @@ wchar_t *
|
||||||
_Py_join_relfile(const wchar_t *dirname, const wchar_t *relfile)
|
_Py_join_relfile(const wchar_t *dirname, const wchar_t *relfile)
|
||||||
{
|
{
|
||||||
assert(dirname != NULL && relfile != NULL);
|
assert(dirname != NULL && relfile != NULL);
|
||||||
|
#ifndef MS_WINDOWS
|
||||||
assert(!_Py_isabs(relfile));
|
assert(!_Py_isabs(relfile));
|
||||||
|
#endif
|
||||||
size_t maxlen = wcslen(dirname) + 1 + wcslen(relfile);
|
size_t maxlen = wcslen(dirname) + 1 + wcslen(relfile);
|
||||||
size_t bufsize = maxlen + 1;
|
size_t bufsize = maxlen + 1;
|
||||||
wchar_t *filename = PyMem_RawMalloc(bufsize * sizeof(wchar_t));
|
wchar_t *filename = PyMem_RawMalloc(bufsize * sizeof(wchar_t));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue