Commit 1f9578e0 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

parseOptionsLong(): initialize lprintoperators only once.

parent 470dccfa
......@@ -1056,6 +1056,9 @@ evaluateExpectOptions(const std::string &optarg)
static int
parseOptionsLong(int argc, char *argv[])
{
int lprintoperators = 0;
int lprintoperatorsno = 0;
int lpedantic = 0;
// These variables must be initialized with each while loop run!
int lasync_worker;
int lcellsearchmethod;
......@@ -1067,12 +1070,9 @@ parseOptionsLong(int argc, char *argv[])
int lgridsearchradius;
int lnetcdf_hdr_pad;
int lno_remap_weights;
int lpedantic;
int lpercentile;
int lpointsearchmethod;
int lprecision;
int lprintoperators;
int lprintoperatorsno;
int lremap_weights;
int lscmode;
int lseed;
......@@ -1148,12 +1148,9 @@ parseOptionsLong(int argc, char *argv[])
lgridsearchradius = 0;
lnetcdf_hdr_pad = 0;
lno_remap_weights = 0;
lpedantic = 0;
lpercentile = 0;
lpointsearchmethod = 0;
lprecision = 0;
lprintoperators = 0;
lprintoperatorsno = 0;
lremap_weights = 0;
lscmode = 0;
lseed = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment