mirror of https://github.com/BOINC/boinc.git
- fix possible crash on state file parse failures
svn path=/trunk/boinc/; revision=17371
This commit is contained in:
parent
e778824e81
commit
20feef33f2
|
@ -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, "");
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue