mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-18 07:47:12 +02:00
esrf changes: eiver: initialise global optind variable before calling getopt_long: Needed when multiple receivers are instantiated in the same process
This commit is contained in:
@ -42,7 +42,8 @@ slsReceiver::slsReceiver(int argc, char *argv[], int &success):
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
|
||||
//initialize global optind variable (required when instantiating multiple receivers in the same process)
|
||||
optind = 1;
|
||||
// getopt_long stores the option index here.
|
||||
int option_index = 0;
|
||||
int c = 0;
|
||||
|
Reference in New Issue
Block a user