Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Closed
Description
If thegetpath.joinpath()
is called without arguments, it tries to return an empty string and callsPyUnicode_FromString(NULL)
for this, which causes a crash. The correct way of creating an empty string isPyUnicode_FromStringAndSize(NULL, 0)
, orPyUnicode_FromString("")
, orPyUnicode_FromStringAndSize("", 0)
.
Alternatively, the function could raise a TypeError instead of returning an empty string.