From 562e596729393edd83638cce1a7970ef9008e995 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 27 Sep 2021 10:21:50 -0600 Subject: [PATCH] Do not check isabs() on Windows. --- Python/fileutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/fileutils.c b/Python/fileutils.c index 2492d0567d84aa5..ecfdc5758eb84fb 100644 --- a/Python/fileutils.c +++ b/Python/fileutils.c @@ -2138,7 +2138,9 @@ wchar_t * _Py_join_relfile(const wchar_t *dirname, const wchar_t *relfile) { assert(dirname != NULL && relfile != NULL); +#ifndef MS_WINDOWS assert(!_Py_isabs(relfile)); +#endif size_t maxlen = wcslen(dirname) + 1 + wcslen(relfile); size_t bufsize = maxlen + 1; wchar_t *filename = PyMem_RawMalloc(bufsize * sizeof(wchar_t));