mirror of
https://github.com/kingk85/uFTP.git
synced 2025-07-25 13:16:12 +03:00
Initialized data with calloc instead of malloc
This commit is contained in:
Binary file not shown.
BIN
build/uFTP
BIN
build/uFTP
Binary file not shown.
@ -698,4 +698,4 @@ int isCharInString(char *theString, int stringLen, char theChar)
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
@ -122,7 +122,7 @@ void initFtpData(ftpDataType *ftpData)
|
||||
srand(time(NULL));
|
||||
|
||||
ftpData->connectedClients = 0;
|
||||
ftpData->clients = (clientDataType *) malloc( sizeof(clientDataType) * ftpData->ftpParameters.maxClients);
|
||||
ftpData->clients = (clientDataType *) calloc( sizeof(clientDataType), ftpData->ftpParameters.maxClients);
|
||||
|
||||
ftpData->serverIp.ip[0] = 127;
|
||||
ftpData->serverIp.ip[1] = 0;
|
||||
|
Reference in New Issue
Block a user