svn path=/trunk/boinc/; revision=1136
This commit is contained in:
David Anderson 2003-04-07 18:37:38 +00:00
parent 535a6a6d38
commit 52c4443d69
1 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,7 @@ int grant_credit(RESULT& result, double credit) {
void handle_wu(WORKUNIT& wu) {
RESULT result, canonical_result;
bool match, update_result;
int retval, canonicalid;
int retval, canonicalid = 0;
double credit;
unsigned int i;
char buf[256];
@ -105,7 +105,8 @@ void handle_wu(WORKUNIT& wu) {
retval = boinc_db_result(wu.canonical_resultid, canonical_result);
if (retval) {
write_log("can't read canonical result\n");
return;
// Mark this WU as validated, otherwise we'll keep checking it
goto mark_validated;
}
// scan this WU's results, and check the unchecked ones
@ -217,6 +218,7 @@ void handle_wu(WORKUNIT& wu) {
}
}
mark_validated:
// we've checked all results for this WU, so turn off flag
//
wu.need_validate = 0;