mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Fix assert when using the internal line editor with no file
This commit is contained in:
parent
a060e1e22e
commit
50d84c4c02
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user