UI: Show error if empty recording path specified

master
Richard Stanway 2017-08-06 23:59:03 +02:00
parent 77ddce3f9a
commit 937ec4d552
No known key found for this signature in database
GPG Key ID: AAC1E5265D71B3FD
1 changed files with 1 additions and 1 deletions

View File

@ -834,7 +834,7 @@ bool SimpleOutput::ConfigureRecording(bool updateReplayBuffer)
int rbSize = config_get_int(main->Config(), "SimpleOutput",
"RecRBSize");
os_dir_t *dir = path ? os_opendir(path) : nullptr;
os_dir_t *dir = path && path[0] ? os_opendir(path) : nullptr;
if (!dir) {
if (main->isVisible())