commit | dcf2bde6e3ad840372ce4b14cb5e1b6a3e07f3f8 | [log] [tgz] |
---|---|---|
author | Harry Pan <harry.pan@intel.com> | Wed Feb 03 15:44:24 2016 +0800 |
committer | Vitaly Buka <vitalybuka@google.com> | Wed Feb 03 18:50:35 2016 +0000 |
tree | a7c67d1185ce325f7a403ca4e0a53eef2b1cf459 | |
parent | 60b131cc2f57ae1408498538d024f65dcfc2c35e [diff] |
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>
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 @@ 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";