mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
Fix logic error found by cppcheck.
This commit is contained in:
parent
88a99d9722
commit
b91c28b8d1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user