Tolerate empty filenames in real_path
This commit is contained in:
parent
f7f84b7402
commit
bec849ae14
|
@ -67,7 +67,9 @@ std::pair<StringView, StringView> split_path(StringView path)
|
|||
|
||||
String real_path(StringView filename)
|
||||
{
|
||||
kak_assert(not filename.empty());
|
||||
if (filename.empty())
|
||||
return {};
|
||||
|
||||
char buffer[PATH_MAX+1];
|
||||
|
||||
StringView existing = filename;
|
||||
|
|
Loading…
Reference in New Issue
Block a user