From fc459731dbe6d1513a37865913355e596229e0eb Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 20 Oct 2004 12:37:39 -0400 Subject: [PATCH] COMP: Remove warning --- Source/kwsys/CommandLineArguments.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index a21779104..172ad60de 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -460,12 +460,11 @@ const char* CommandLineArguments::GetHelp(const char* arg) = this->Internals->Callbacks.find(cs->Help); if ( hit == this->Internals->Callbacks.end() ) { - return cs->Help; + break; } cs = &(hit->second); } - // Should never happened - return 0; + return cs->Help; } //----------------------------------------------------------------------------