- fix possible crash on state file parse failures

svn path=/trunk/boinc/; revision=17371
This commit is contained in:
David Anderson 2009-02-25 15:34:51 +00:00
parent e778824e81
commit 20feef33f2
2 changed files with 3 additions and 2 deletions

View File

@ -594,7 +594,7 @@ int ACTIVE_TASK::parse(MIOFILE& fin) {
char buf[256], result_name[256], project_master_url[256];
int n, dummy;
unsigned int i;
PROJECT* project;
PROJECT* project=0;
double x;
strcpy(result_name, "");

View File

@ -101,7 +101,8 @@ inline int max_results_day_multiplier() {
if (cp) {
int m = cp->count;
if (m > MAX_CUDA_DEVS) m = MAX_CUDA_DEVS;
n += m*config.cuda_multiplier;
//n += m*config.cuda_multiplier;
n = m*config.cuda_multiplier;
}
}
return n;