Fix logic error found by cppcheck.

This commit is contained in:
Michael Drake 2014-04-02 21:59:24 +01:00
parent 88a99d9722
commit b91c28b8d1

View File

@ -1686,7 +1686,7 @@ void ro_toolbar_set_content_favicon(struct toolbar *toolbar,
void ro_toolbar_update_urlsuggest(struct toolbar *toolbar)
{
if (toolbar != NULL && toolbar->url != NULL)
if (toolbar == NULL || toolbar->url == NULL)
return;
ro_gui_url_bar_update_urlsuggest(toolbar->url);