Bug fix in getting vector of values form KVStore 12/26212/1
authorJan Olszak <j.olszak@samsung.com>
Tue, 19 Aug 2014 08:44:38 +0000 (10:44 +0200)
committerJan Olszak <j.olszak@samsung.com>
Tue, 19 Aug 2014 08:47:06 +0000 (10:47 +0200)
[Bug/Feature]   istringstream wasn't initialized
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I61ebf4242b868e2dc6fd8adc3b69db453f80afac

src/config/kvstore.hpp

index 94258f1..6b75c91 100644 (file)
@@ -179,7 +179,7 @@ std::vector<T> KVStore::getInternal(const std::string& key, std::vector<T>*)
     std::vector<T> values(strValues.size());
 
     auto parse = [](const std::string & strValue) -> T {
-        std::istringstream iss;
+        std::istringstream iss(strValue);
         T value;
         iss >> value;
         return value;