Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-16 21:21:22 +02:00
parent 0088a4d3e8
commit 642b4cc86c
15 changed files with 66 additions and 21 deletions

View File

@@ -415,7 +415,6 @@ void deleteProcParams(std::vector<rtengine::procparams::PartialProfile*> &pparam
int processLineParams( int argc, char **argv )
{
unsigned errors = 0;
for( int iArg = 1; iArg < argc; iArg++) {
Glib::ustring currParam(argv[iArg]);
@@ -472,5 +471,5 @@ int processLineParams( int argc, char **argv )
return 1;
}
return errors > 0 ? -2 : 0;
return 0;
}