diff options
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/CommandLineArguments.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index a217791..172ad60 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; } //---------------------------------------------------------------------------- |