- client: when parsing cc_config.xml,

clear vectors so we don't end up with duplicates


svn path=/trunk/boinc/; revision=20020
This commit is contained in:
David Anderson 2009-12-22 23:13:11 +00:00
parent b0463cffae
commit 2ce0cd6a6f
2 changed files with 15 additions and 1 deletions

View File

@ -10619,3 +10619,10 @@ David 22 Dec 2009
client_state.cpp
cs_notice.cpp,h
log_flags.cpp,h
David 22 Dec 2009
- client: when parsing cc_config.xml,
clear vectors so we don't end up with duplicates
client/
log_flags.cpp

View File

@ -262,8 +262,15 @@ int CONFIG::parse_options(XML_PARSER& xp) {
int n;
//clear();
// don't do this because some options are set by cmdline args,
// don't do this here because some options are set by cmdline args,
// which are parsed first
// but do clear these, which aren't accessable via cmdline:
//
alt_platforms.clear();
exclusive_apps.clear();
exclusive_gpu_apps.clear();
ignore_cuda_dev.clear();
ignore_ati_dev.clear();
while (!xp.get(tag, sizeof(tag), is_tag)) {
if (!is_tag) {