diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-30 23:13:42 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-30 23:13:42 +0100 |
commit | 2f02d0785a4abd6977cd5716a33c604377703d5d (patch) | |
tree | 3a78a85ae43976555e7993c1686a3c4ff1ae057f | |
parent | 55b3163520197148556aeb8ea2e7f779d54b0dc5 (diff) | |
download | netsurf-2f02d0785a4abd6977cd5716a33c604377703d5d.tar.gz netsurf-2f02d0785a4abd6977cd5716a33c604377703d5d.tar.bz2 |
Scope reduce a variable.
-rw-r--r-- | riscos/toolbar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/riscos/toolbar.c b/riscos/toolbar.c index d64db2d37..3a6c0d67b 100644 --- a/riscos/toolbar.c +++ b/riscos/toolbar.c @@ -1774,8 +1774,6 @@ bool ro_toolbar_get_editing(struct toolbar *toolbar) bool ro_toolbar_toggle_edit(struct toolbar *toolbar) { - char *new_buttons; - if (toolbar == NULL || toolbar->editor == NULL) return false; @@ -1799,6 +1797,7 @@ bool ro_toolbar_toggle_edit(struct toolbar *toolbar) if (!toolbar->editing && toolbar->buttons != NULL && toolbar->callbacks != NULL && toolbar->callbacks->save_buttons != NULL) { + char *new_buttons; new_buttons = ro_gui_button_bar_get_config(toolbar->buttons); toolbar->callbacks->save_buttons(toolbar->client_data, new_buttons); |