1
1
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:
Maxime Coste 2018-03-20 05:56:20 +11:00
parent f7f84b7402
commit bec849ae14

View File

@ -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;