From 2ce0cd6a6fdee34ce83603329cb5a035ed7cad2e Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 22 Dec 2009 23:13:11 +0000 Subject: [PATCH] - client: when parsing cc_config.xml, clear vectors so we don't end up with duplicates svn path=/trunk/boinc/; revision=20020 --- checkin_notes | 7 +++++++ client/log_flags.cpp | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 714fafdefc..3cae243d4f 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/client/log_flags.cpp b/client/log_flags.cpp index cbc8cc43cb..943ff7af65 100644 --- a/client/log_flags.cpp +++ b/client/log_flags.cpp @@ -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) {