From 1a9e799b7876f436f6af582cd2c9b80a855f0b1f Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 2 Apr 2004 08:07:12 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3209 --- api/boinc_api.C | 4 ++-- checkin_notes | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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