diff --git a/api/boinc_api.C b/api/boinc_api.C index 6d49514042..facff1b461 100644 --- a/api/boinc_api.C +++ b/api/boinc_api.C @@ -179,8 +179,7 @@ int boinc_parse_init_data_file() { // If in standalone mode, use init files if they're there, // but don't demand that they exist // - f = boinc_fopen(INIT_DATA_FILE, "r"); - if (!f) { + if (!boinc_file_exists(INIT_DATA_FILE)) { if (standalone) { safe_strncpy(aid.app_preferences, "", sizeof(aid.app_preferences)); safe_strncpy(aid.user_name, "Unknown user", sizeof(aid.user_name)); @@ -199,6 +198,7 @@ int boinc_parse_init_data_file() { return ERR_FOPEN; } } else { + f = boinc_fopen(INIT_DATA_FILE, "r"); retval = parse_init_data_file(f, aid); fclose(f); if (retval) { diff --git a/checkin_notes b/checkin_notes index e9a0780273..e8b6f68b59 100755 --- a/checkin_notes +++ b/checkin_notes @@ -11259,3 +11259,10 @@ David April 1 2004 api/ windows_opengl.C + +Rom April 1 2004 + - Found another place that should have been using boinc_file_exist. + NOTE: Still hasn't fixed the performance issue(s) on my machine though. + + api/ + boinc_api.c \ No newline at end of file