Bug 1391556 - fix incorrect out of bound check. r=jwwang

MozReview-Commit-ID: JytNgl6bqCX

--HG--
extra : rebase_source : 53ef9acf40d5c882342488c6ef1abf6bddae0542
This commit is contained in:
John Lin 2017-08-22 10:06:41 +08:00
parent 1e1b1b1bf2
commit ddd6436e6a

View File

@ -151,7 +151,7 @@ static LogState *createLogState()
{
size_t i;
for (i = 0; i < sizeof(openLogTable); i++) {
for (i = 0; i < MAX_OPEN_LOGS; i++) {
if (openLogTable[i] == NULL) {
openLogTable[i] = calloc(1, sizeof(LogState));
openLogTable[i]->fakeFd = FAKE_FD_BASE + i;