diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-31 13:06:52 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-31 13:06:52 +0100 |
commit | 91f3eb5c2ffcaf3f3b09ba24069f08a7a953ee0c (patch) | |
tree | c46ddc8b415da55b5185ba85c78d92c8024d10d6 /riscos/url_complete.c | |
parent | c7ba173a6405eca736ee7032330c00f9939e7c37 (diff) | |
download | netsurf-91f3eb5c2ffcaf3f3b09ba24069f08a7a953ee0c.tar.gz netsurf-91f3eb5c2ffcaf3f3b09ba24069f08a7a953ee0c.tar.bz2 |
Scope reduce a variable.
Diffstat (limited to 'riscos/url_complete.c')
-rw-r--r-- | riscos/url_complete.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |