mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
zero out colInfo wehen allocated to avoid startup crash and other badness
This commit is contained in:
parent
1656e7ba4b
commit
2eb68e6135
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user