summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index d55e4e650..57d83fbdc 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -535,7 +535,7 @@ std::string stringToHexPath(const std::string &str)
return "";
std::string hex = strprintf("%%%2x/", static_cast<int>(str[0]));
- for (unsigned f = 1; f < str.size(); f ++)
+ for (unsigned f = 1, sz = str.size(); f < sz; f ++)
hex += strprintf("%%%2x", static_cast<int>(str[f]));
return hex;
}