mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 16:20:03 +02:00
memry allcation
This commit is contained in:
parent
e4a8933d97
commit
947a0e5f41
@ -370,7 +370,7 @@ int UDPStandardImplementation::setupFifoStructure(){
|
||||
|
||||
//allocate memory
|
||||
mem0[i] = (char*)malloc((bufferSize * numberofJobsPerBuffer + fifoBufferHeaderSize) * fifoSize);
|
||||
if (mem0[i]){
|
||||
if (mem0[i] == NULL){
|
||||
cprintf(BG_RED,"Error: Could not allocate memory for listening \n");
|
||||
return FAIL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user