summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r--cpp/src/IcePatch/Client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp
index ed819db4a79..d8d858ac7d7 100644
--- a/cpp/src/IcePatch/Client.cpp
+++ b/cpp/src/IcePatch/Client.cpp
@@ -244,11 +244,12 @@ IcePatch::Client::run(int argc, char* argv[])
//
// Patch all subdirectories.
//
+ FilePrx top;
for(vector<string>::const_iterator p = subdirs.begin(); p != subdirs.end(); ++p)
{
Identity identity = pathToIdentity(*p);
ObjectPrx topObj = communicator()->stringToProxy(identityToString(identity) + ':' + endpoints);
- FilePrx top;
+
try
{
top = FilePrx::checkedCast(topObj);