Fix assert when using the internal line editor with no file

This commit is contained in:
pancake 2021-08-19 18:17:39 +02:00
parent a060e1e22e
commit 50d84c4c02

View File

@ -58,6 +58,10 @@ static void filesave(void) {
}
}
}
if (!path) {
eprintf ("No file given.\n");
return;
}
if (lines) {
for (i = 0; i < bytes; i++) {
if (lines[i] == '\0') {