зеркало из https://github.com/mozilla/pjs.git
14143
This commit is contained in:
Родитель
4bb6f59e12
Коммит
3c0d86f28a
|
@ -343,9 +343,10 @@ nsStreamConverterService::FindConverter(const char *aProgID, nsVoidArray **aEdge
|
|||
if (!source) return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
SCTableData *data = (SCTableData*)lBFSTable.Get(source);
|
||||
NS_ASSERTION(data, "tried to convert a stream who's from type wasn't registered");
|
||||
if (!data) return NS_ERROR_FAILURE;
|
||||
|
||||
BFSState *state = (BFSState*)data->data;
|
||||
// XXX probably don't need this check.
|
||||
if (!state) return NS_ERROR_FAILURE;
|
||||
|
||||
state->color = gray;
|
||||
state->distance = 0;
|
||||
|
|
Загрузка…
Ссылка в новой задаче