diff options
-rw-r--r-- | riscos/window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/riscos/window.c b/riscos/window.c index 58f4f3888..9d3113130 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -3685,15 +3685,15 @@ void ro_gui_window_toolbar_click(void *data, case TOOLBAR_BUTTON_UP: err = browser_window_navigate_up(g->bw, false); - if (error != NSERROR_OK) { - warn_user(messages_get_errorcode(error), NULL); + if (err != NSERROR_OK) { + warn_user(messages_get_errorcode(err), NULL); } break; case TOOLBAR_BUTTON_UP_NEW: err = browser_window_navigate_up(g->bw, true); - if (error != NSERROR_OK) { - warn_user(messages_get_errorcode(error), NULL); + if (err != NSERROR_OK) { + warn_user(messages_get_errorcode(err), NULL); } break; |