From 2f02d0785a4abd6977cd5716a33c604377703d5d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 30 May 2014 23:13:42 +0100 Subject: Scope reduce a variable. --- riscos/toolbar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'riscos') 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); -- cgit v1.2.3