Fixed empty filename bug.
This commit is contained in:
parent
fd2144a1f9
commit
22b091f017
@ -125,9 +125,9 @@ struct dialogue_response ask_access(const char *filename,
|
||||
fprintf(stderr, "dialogue wrote out %s\n", first(&dialogue_output));
|
||||
fprintf(stderr, "dialogue returned %d\n", dialogue_exit_code);
|
||||
|
||||
// if (size(&dialogue_output) == 0) {
|
||||
// push(&dialogue_output, '.');
|
||||
// }
|
||||
if (size(&dialogue_output) == 0) {
|
||||
push(&dialogue_output, '/');
|
||||
}
|
||||
|
||||
assert(strlen(first(&dialogue_output)) == size(&dialogue_output));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user