From b91c28b8d1ecf1ace615ff12e11adadf4f330b9a Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 2 Apr 2014 21:59:24 +0100 Subject: Fix logic error found by cppcheck. --- riscos/toolbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscos') diff --git a/riscos/toolbar.c b/riscos/toolbar.c index 34d61715f..d64db2d37 100644 --- a/riscos/toolbar.c +++ b/riscos/toolbar.c @@ -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); -- cgit v1.2.3