gh-106242: Minor fixup to avoid compiler warnings (GH-107983)

This commit is contained in:
Steve Dower
2023-08-15 18:02:32 +01:00
committed by GitHub
parent 971a4c2751
commit 34e1917912

View File

@@ -2383,7 +2383,7 @@ wchar_t *
_Py_normpath_and_size(wchar_t *path, Py_ssize_t size, Py_ssize_t *normsize)
{
assert(path != NULL);
if (!path[0] && size < 0 || size == 0) {
if ((size < 0 && !path[0]) || size == 0) {
*normsize = 0;
return path;
}