summaryrefslogtreecommitdiff
path: root/src/utils/parameters.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-21 19:30:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-21 19:30:40 +0300
commitf3ac812e2079eac53c1a9db56541d7103bd14a61 (patch)
tree3a9a9e9deebdbbb44da32ad4b1656743c4ff80c1 /src/utils/parameters.cpp
parentf61f794776fd37223c0977437a6bfcfef6759f84 (diff)
downloadmv-f3ac812e2079eac53c1a9db56541d7103bd14a61.tar.gz
mv-f3ac812e2079eac53c1a9db56541d7103bd14a61.tar.bz2
mv-f3ac812e2079eac53c1a9db56541d7103bd14a61.tar.xz
mv-f3ac812e2079eac53c1a9db56541d7103bd14a61.zip
Fix code style.
Diffstat (limited to 'src/utils/parameters.cpp')
-rw-r--r--src/utils/parameters.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/parameters.cpp b/src/utils/parameters.cpp
index 467c31553..ef8332167 100644
--- a/src/utils/parameters.cpp
+++ b/src/utils/parameters.cpp
@@ -73,11 +73,10 @@ static inline size_t findNextSplit(const std::string &str,
const char quote)
{
size_t pos = 0;
- size_t idx1 = 0;
while (true)
{
// search for next separator
- idx1 = findAny(str, separator, pos);
+ size_t idx1 = findAny(str, separator, pos);
// search for next open quote, skipping escaped quotes
size_t idx2 = findNextQuote(str, quote, pos);
if (idx2 == std::string::npos) // not quotes, return next separator