Return early in SubProcessUnix::start() if the executable path is empty.

This commit is contained in:
Relintai 2023-09-10 12:39:29 +02:00
parent ca105c2f88
commit a0a84c4987

View File

@ -40,6 +40,10 @@
#include <sys/wait.h>
Error SubProcessUnix::start() {
if (_executable_path.empty()) {
return ERR_FILE_BAD_PATH;
}
if (is_process_running()) {
return ERR_BUSY;
}