X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fwrt-installer%2Fwrt-installer.cpp;h=58db8f480957db79e535f794e320909ae65cf3f0;hb=c7b504b2506c5718e1611c2258b3e345363e0a8c;hp=a61a96abda740a4a492d90b80f6ee3bc79366dd0;hpb=929e80e90b75ae07ae1590204b0691905d1df349;p=framework%2Fweb%2Fwrt-installer.git diff --git a/src/wrt-installer/wrt-installer.cpp b/src/wrt-installer/wrt-installer.cpp index a61a96a..58db8f4 100644 --- a/src/wrt-installer/wrt-installer.cpp +++ b/src/wrt-installer/wrt-installer.cpp @@ -1001,14 +1001,14 @@ CSCConfiguration::dataMap WrtInstaller::parseCSCConfiguration( const char* ptr = strtok(buf,":"); while (ptr != NULL) { std::string string = ptr; + ptr = strtok (NULL, ":"); size_t pos = string.find('='); if (pos == std::string::npos) { continue; } result.insert( CSCConfiguration::dataPair(string.substr(0, pos), - string.substr(pos+1))); - ptr = strtok (NULL, ":"); + string.substr(pos+1))); } return result; }