mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-13 10:25:25 +01:00
fixed uninitialized pointer
This commit is contained in:
@@ -306,7 +306,7 @@ class slsReceiverTCPIPInterface : private virtual slsDetectorDefs {
|
||||
detectorType myDetectorType;
|
||||
|
||||
/** slsReceiverBase object */
|
||||
slsReceiverImplementation *receiver;
|
||||
slsReceiverImplementation *receiver{nullptr};
|
||||
|
||||
/** Function List */
|
||||
int (slsReceiverTCPIPInterface::*flist[NUM_REC_FUNCTIONS])(sls::ServerInterface2& socket);
|
||||
|
||||
@@ -1906,7 +1906,6 @@ int slsReceiverTCPIPInterface::check_version_compatibility(sls::ServerInterface2
|
||||
ret = OK;
|
||||
memset(mess, 0, sizeof(mess));
|
||||
int64_t arg = -1;
|
||||
std::cout << "<----------------- HEY\n";
|
||||
// get args, return if socket crashed
|
||||
if (socket.receiveArg(ret, mess, &arg, sizeof(arg)) == FAIL)
|
||||
return FAIL;
|
||||
|
||||
Reference in New Issue
Block a user