Various fixes

Various fixes for initialisation and packet size allocation
This commit is contained in:
MassimilianoPinto
2015-09-21 08:44:33 +02:00
parent 601eac5a5d
commit 2c12ba3d16
2 changed files with 6 additions and 5 deletions

View File

@ -334,7 +334,7 @@ BLFILE *file;
return file;
}
if ((file = (BLFILE *)malloc(sizeof(BLFILE))) == NULL)
if ((file = (BLFILE *)calloc(1, sizeof(BLFILE))) == NULL)
{
spinlock_release(&router->fileslock);
return NULL;