libconfigfile: check iterator for end before using it

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2c131c8117
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-01-13 (Fri, 13 Jan 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2012-01-13 15:46:46 +04:00
parent d2d1f85885
commit bf52a925a8

View File

@@ -391,6 +391,8 @@ void CConfigFile::setInt32Vector(const std::string & key, const std::vector<int3
for (std::vector<int32_t>::const_iterator it = vec.begin(); ; )
{
if (it == vec.end())
break;
s << (*it);
it++;
if (it == vec.end())
@@ -406,6 +408,8 @@ void CConfigFile::setStringVector(const std::string & key, const std::vector<std
for (std::vector<std::string>::const_iterator it = vec.begin(); ; )
{
if (it == vec.end())
break;
configData[key] += *it;
it++;
if (it == vec.end())