Skip to content
Snippets Groups Projects
Commit f0293098 authored by Rom Walton's avatar Rom Walton
Browse files

VBOX: Take care of a false positive. The completion file string size must be greater than zero.

parent 8b997f0c
Branches
Tags
No related merge requests found
......@@ -121,7 +121,7 @@ void read_fraction_done(double& frac_done, VBOX_VM& vm) {
bool completion_file_exists(VBOX_VM& vm) {
char path[MAXPATHLEN];
sprintf(path, "shared/%s", vm.completion_trigger_file.c_str());
if (boinc_file_exists(path)) return true;
if (vm.completion_trigger_file.size() && boinc_file_exists(path)) return true;
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment