mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
more malloc/memset to calloc
This commit is contained in:
parent
90b4f5c0ee
commit
b6edd778e7
1 changed files with 2 additions and 4 deletions
|
@ -361,8 +361,7 @@ PortalFlow (portal_t *p)
|
|||
fprintf (stderr, "PortalFlow: reflowed");
|
||||
p->status = stat_working;
|
||||
|
||||
p->visbits = malloc (bitbytes);
|
||||
memset (p->visbits, 0, bitbytes);
|
||||
p->visbits = calloc (1, bitbytes);
|
||||
|
||||
memset (&data, 0, sizeof (data));
|
||||
data.leafvis = p->visbits;
|
||||
|
@ -413,8 +412,7 @@ BasePortalVis (void)
|
|||
winding_t *winding;
|
||||
|
||||
for (i = 0, p = portals; i < numportals * 2; i++, p++) {
|
||||
p->mightsee = malloc (bitbytes);
|
||||
memset (p->mightsee, 0, bitbytes);
|
||||
p->mightsee = calloc (1, bitbytes);
|
||||
|
||||
c_portalsee = 0;
|
||||
memset (portalsee, 0, numportals * 2);
|
||||
|
|
Loading…
Reference in a new issue