memry allcation

This commit is contained in:
Dhanya Maliakal 2016-11-04 12:15:47 +01:00
parent e4a8933d97
commit 947a0e5f41

View File

@ -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;
}