From 20feef33f2ea61f01e6d74428f79e4ad0e1192bb Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 25 Feb 2009 15:34:51 +0000 Subject: [PATCH] - fix possible crash on state file parse failures svn path=/trunk/boinc/; revision=17371 --- client/app.cpp | 2 +- sched/sched_send.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/app.cpp b/client/app.cpp index 8051a35847..9eb6ef8543 100644 --- a/client/app.cpp +++ b/client/app.cpp @@ -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, ""); diff --git a/sched/sched_send.cpp b/sched/sched_send.cpp index 4bfc901e8c..306dc03ec1 100644 --- a/sched/sched_send.cpp +++ b/sched/sched_send.cpp @@ -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;