- client: fix notice crash

svn path=/trunk/boinc/; revision=20353
This commit is contained in:
David Anderson 2010-02-02 00:53:05 +00:00
parent 7d229ccf4b
commit 416c1d4c49
1 changed files with 3 additions and 3 deletions

View File

@ -282,12 +282,12 @@ bool NOTICES::remove_dups(NOTICE& n, bool keep_old) {
}
bool NOTICES::append(NOTICE& n, bool keep_old, bool archive) {
if (!remove_dups(n, keep_old)) {
return false;
}
if (notices.empty()) {
n.seqno = 1;
} else {
if (!remove_dups(n, keep_old)) {
return false;
}
n.seqno = notices.front().seqno + 1;
}
if (log_flags.notice_debug) {