diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-04-02 21:56:34 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-04-02 21:56:34 +0100 |
commit | 88a99d9722f6c61cf8a338002d7a38622a1168ef (patch) | |
tree | 7b84441b1bcfd30a82ddbfc60a64a9a19ee14ccb | |
parent | 527bc23bdba33f1db6194c5d95f41f8a6b603bd5 (diff) | |
download | netsurf-88a99d9722f6c61cf8a338002d7a38622a1168ef.tar.gz netsurf-88a99d9722f6c61cf8a338002d7a38622a1168ef.tar.bz2 |
Fix logic error found by cppcheck.
-rw-r--r-- | riscos/toolbar.c | 2 |
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); |