Skip to content

Commit

Permalink
Fix assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
nineteendo committed Nov 13, 2024
1 parent b774310 commit 5a6cec5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Python/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2514,11 +2514,10 @@ _Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t *normsize,
_Py_skiproot(path, size, &drvsize, &rootsize);
if (p1[0] == L'.' && IS_SEP(&p1[1])) {
// Skip leading '.\'
path = &path[2];
while (IS_SEP(path)) {
path++;
p1 = &path[2];
while (IS_SEP(p1)) {
p1++;
}
p1 = p2 = minP2 = path;
lastC = SEP;
explicit = 1;
}
Expand Down

0 comments on commit 5a6cec5

Please sign in to comment.