mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-15 01:11:09 +03:00
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)
|
String real_path(StringView filename)
|
||||||
{
|
{
|
||||||
kak_assert(not filename.empty());
|
if (filename.empty())
|
||||||
|
return {};
|
||||||
|
|
||||||
char buffer[PATH_MAX+1];
|
char buffer[PATH_MAX+1];
|
||||||
|
|
||||||
StringView existing = filename;
|
StringView existing = filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user