aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHarry Pan <harry.pan@intel.com>2016-02-03 15:44:24 +0800
committerVitaly Buka <vitalybuka@google.com>2016-02-03 18:50:35 +0000
commitdcf2bde6e3ad840372ce4b14cb5e1b6a3e07f3f8 (patch)
treea7c67d1185ce325f7a403ca4e0a53eef2b1cf459 /examples
parent60b131cc2f57ae1408498538d024f65dcfc2c35e (diff)
downloadlibweave-dcf2bde6e3ad840372ce4b14cb5e1b6a3e07f3f8.tar.gz
Fix incorrect weave setting file path
The weave setting path is incorrect due to duplicated prefix, tinker the GetPath method a bit to make it work. Change-Id: Icb88c29d7ce9836080814d615959eacb5e38feae Reviewed-on: https://weave-review.googlesource.com/2470 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/provider/file_config_store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/provider/file_config_store.cc b/examples/provider/file_config_store.cc
index a6c2e60..b215023 100644
--- a/examples/provider/file_config_store.cc
+++ b/examples/provider/file_config_store.cc
@@ -26,7 +26,7 @@ FileConfigStore::FileConfigStore(const std::string& model_id,
std::string FileConfigStore::GetPath(const std::string& name) const {
std::string path{kSettingsDir};
- path += path + "weave_settings_" + model_id_;
+ path += "weave_settings_" + model_id_;
if (!name.empty())
path += "_" + name;
return path + ".json";