From ccaf675a9545de2264e2e32c5556e7ece7d20d29 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 23 Sep 2014 18:04:01 -0700 Subject: [PATCH] client: fix bug in finish-file logic --- client/app_control.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/app_control.cpp b/client/app_control.cpp index d2e3dbd9ee..c59bc3e4cb 100644 --- a/client/app_control.cpp +++ b/client/app_control.cpp @@ -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;