zero out colInfo wehen allocated to avoid startup crash and other badness

This commit is contained in:
shaver@netscape.com
1999-07-28 18:52:04 +00:00
parent cd8c2ac85a
commit 73c51845d7
2 changed files with 2 additions and 0 deletions

View File

@@ -1139,6 +1139,7 @@ void BasicTableLayoutStrategy::AllocateConstrained(PRInt32 aAvailWidth,
if (!colInfo) {
return;
}
memset(colInfo, 0, aNumConstrainedCols * sizeof(nsColInfo *));
PRInt32 maxMinDiff = 0;
PRInt32 constrColX = 0;
// set the col info entries for each constrained col