functions not overriding base and unitialized use

This commit is contained in:
Erik Frojdh
2019-01-11 11:27:48 +01:00
parent c6a597c3ec
commit 1bd0b33806
4 changed files with 7 additions and 7 deletions

View File

@ -2606,7 +2606,7 @@ std::string slsDetectorCommand::helpThreaded(int action) {
std::string slsDetectorCommand::cmdImage(int narg, char *args[], int action, int detPos) {
std::string sval;
int retval;
int retval = FAIL;
if (action == HELP_ACTION)
return helpImage(HELP_ACTION);
else if (action == GET_ACTION)
@ -2643,7 +2643,7 @@ std::string slsDetectorCommand::cmdCounter(int narg, char *args[], int action, i
int ival;
char answer[100];
std::string sval;
int retval;
int retval = FAIL;
if (action == HELP_ACTION)
return helpCounter(HELP_ACTION);
else if (action == PUT_ACTION)