summaryrefslogtreecommitdiff
path: root/riscos/toolbar.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-04-02 21:56:34 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-04-02 21:56:34 +0100
commit88a99d9722f6c61cf8a338002d7a38622a1168ef (patch)
tree7b84441b1bcfd30a82ddbfc60a64a9a19ee14ccb /riscos/toolbar.c
parent527bc23bdba33f1db6194c5d95f41f8a6b603bd5 (diff)
downloadnetsurf-88a99d9722f6c61cf8a338002d7a38622a1168ef.tar.gz
netsurf-88a99d9722f6c61cf8a338002d7a38622a1168ef.tar.bz2
Fix logic error found by cppcheck.
Diffstat (limited to 'riscos/toolbar.c')
-rw-r--r--riscos/toolbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/toolbar.c b/riscos/toolbar.c
index 93c4438c3..34d61715f 100644
--- a/riscos/toolbar.c
+++ b/riscos/toolbar.c
@@ -1579,7 +1579,7 @@ bool ro_toolbar_set_button_order(struct toolbar *toolbar, char order[])
void ro_toolbar_set_button_shaded_state(struct toolbar *toolbar,
button_bar_action action, bool shaded)
{
- if (toolbar == NULL && toolbar->buttons == NULL)
+ if (toolbar == NULL || toolbar->buttons == NULL)
return;
ro_gui_button_bar_shade_button(toolbar->buttons, action, shaded);