summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/converter/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/converter/Client.cpp')
-rw-r--r--cpp/demo/Ice/converter/Client.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/demo/Ice/converter/Client.cpp b/cpp/demo/Ice/converter/Client.cpp
index 1632fbd6713..a0f27f15462 100644
--- a/cpp/demo/Ice/converter/Client.cpp
+++ b/cpp/demo/Ice/converter/Client.cpp
@@ -30,6 +30,12 @@ menu()
int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator1, const Ice::CommunicatorPtr& communicator2)
{
+ if(argc > 1)
+ {
+ cerr << argv[0] << ": too many arguments" << endl;
+ return EXIT_FAILURE;
+ }
+
const string proxyProperty = "Echo.Proxy";
EchoPrx echo1 = EchoPrx::checkedCast(communicator1->propertyToProxy(proxyProperty));
if(!echo1)