From 91f3eb5c2ffcaf3f3b09ba24069f08a7a953ee0c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 31 May 2014 13:06:52 +0100 Subject: Scope reduce a variable. --- riscos/url_complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscos') diff --git a/riscos/url_complete.c b/riscos/url_complete.c index 889d1daab..b15de0ff3 100644 --- a/riscos/url_complete.c +++ b/riscos/url_complete.c @@ -96,7 +96,6 @@ bool ro_gui_url_complete_keypress(struct toolbar *toolbar, uint32_t key) wimp_window_state state; char *match_url; const char *url; - int i; int old_selection; int height; os_error *error; @@ -144,6 +143,7 @@ bool ro_gui_url_complete_keypress(struct toolbar *toolbar, uint32_t key) (strcmp(match_url, url_complete_matched_string))) { /* memorize the current matches */ + int i; int lines = MAXIMUM_VISIBLE_LINES; if (lines > url_complete_matches_available) lines = url_complete_matches_available; -- cgit v1.2.3