Fix potential crash, bug 51663, r=radha, a=brendan

This commit is contained in:
disttsc%bart.nl 2000-12-07 06:24:12 +00:00
Родитель 5c9e943c45
Коммит d43a87787f
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 0 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
@ -411,6 +411,7 @@ nsUrlbarHistory::SearchCache(const PRUnichar* searchStr, nsIAutoCompleteResults*
rv = entries->GetNext(getter_AddRefs(entry));
if (entry) {
literal = do_QueryInterface(entry);
if (literal)
literal->GetValueConst(&rdfValue);
}
if (rdfValue) {