Fixed bad sizeof in calloc.

This commit is contained in:
Armin Novak 2014-11-16 22:43:11 +01:00
parent 5c71a64910
commit e256e14cc4
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ wIniFile* IniFile_New()
{
ini->nSections = 0;
ini->cSections = 64;
ini->sections = (wIniFileSection**) malloc(sizeof(wIniFileSection) * ini->cSections);
ini->sections = (wIniFileSection**) calloc(ini->cSections, sizeof(wIniFileSection*));
}
return ini;