mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 13:27:14 +02:00
bugfix: returning pointer to local variable, char* to string in function definition
This commit is contained in:
@ -4508,8 +4508,8 @@ string slsDetectorCommand::cmdSettings(int narg, char *args[], int action) {
|
||||
} else if (action==PUT_ACTION) {
|
||||
myDet->loadSettingsFile(sval,-1);
|
||||
}
|
||||
}//cout<<"settingsfile:"<<myDet->getSettingsFile()<<endl;
|
||||
return string(myDet->getSettingsFile());
|
||||
}
|
||||
return myDet->getSettingsFile();
|
||||
} else if (cmd=="trim") {
|
||||
if (action==GET_ACTION)
|
||||
return string("cannot get!");
|
||||
|
Reference in New Issue
Block a user