зеркало из https://github.com/mozilla/gecko-dev.git
Fix FindRow() to deal with null argument.
This commit is contained in:
Родитель
08e85c3495
Коммит
de81fd6373
|
@ -2204,9 +2204,11 @@ nsSimpleGlobalHistory::FindRow(mdb_column aCol,
|
|||
|
||||
if (!hasRow) return NS_ERROR_NOT_AVAILABLE;
|
||||
|
||||
*aResult = row;
|
||||
(*aResult)->AddRef();
|
||||
|
||||
if (aResult) {
|
||||
*aResult = row;
|
||||
(*aResult)->AddRef();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче