mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
fixed uninitialized pointer
This commit is contained in:
parent
615d1b1f33
commit
c30c6bb883
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user