summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/IceGrid/ServerI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ServerI.cpp b/cpp/src/IceGrid/ServerI.cpp
index 4ebac6eb1e4..575212c5a91 100644
--- a/cpp/src/IceGrid/ServerI.cpp
+++ b/cpp/src/IceGrid/ServerI.cpp
@@ -79,7 +79,6 @@ struct EnvironmentEval : std::unary_function<string, string>
string v = value.substr(assignment + 1);
assert(v.size());
string::size_type beg = 0;
- string::size_type end;
#ifdef _WIN32
// char buf[32767];
// while((beg = v.find("%", beg)) != string::npos && beg < v.size() - 1)
@@ -97,6 +96,7 @@ struct EnvironmentEval : std::unary_function<string, string>
// }
return value;
#else
+ string::size_type end;
while((beg = v.find("$", beg)) != string::npos && beg < v.size() - 1)
{
string variable;