client: fix bug in finish-file logic

This commit is contained in:
David Anderson 2014-09-23 18:04:01 -07:00
parent a8b9d40f67
commit ccaf675a95
1 changed files with 2 additions and 0 deletions

View File

@ -595,6 +595,8 @@ void ACTIVE_TASK::handle_exited_app(int stat) {
//
bool ACTIVE_TASK::finish_file_present() {
char path[MAXPATHLEN], buf[1024], buf2[256];
strcpy(buf, "");
strcpy(buf2, "");
sprintf(path, "%s/%s", slot_dir, BOINC_FINISH_CALLED_FILE);
FILE* f = fopen(path, "r");
if (!f) return false;