mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Move variable out of loop to fix uninitialized warning caused by goto label
This commit is contained in:
parent
7c7a0bb890
commit
71e569c129
@ -923,6 +923,11 @@ point_intersect(struct point *p1, int l1, struct point *p2, int l2)
|
|||||||
static int
|
static int
|
||||||
find_next_link_in_search(struct document_view *doc_view, int direction)
|
find_next_link_in_search(struct document_view *doc_view, int direction)
|
||||||
{
|
{
|
||||||
|
int utf8 = 0;
|
||||||
|
#ifdef CONFIG_UTF_8
|
||||||
|
utf8 = doc_view->document->options.utf8;
|
||||||
|
#endif
|
||||||
|
|
||||||
assert(doc_view && doc_view->vs);
|
assert(doc_view && doc_view->vs);
|
||||||
if_assert_failed return 0;
|
if_assert_failed return 0;
|
||||||
|
|
||||||
@ -943,10 +948,6 @@ find_next_link_in_search(struct document_view *doc_view, int direction)
|
|||||||
struct point *pt = NULL;
|
struct point *pt = NULL;
|
||||||
struct link *link;
|
struct link *link;
|
||||||
int len;
|
int len;
|
||||||
int utf8 = 0;
|
|
||||||
#ifdef CONFIG_UTF_8
|
|
||||||
utf8 = doc_view->document->options.utf8;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
nt:
|
nt:
|
||||||
link = &doc_view->document->links[doc_view->vs->current_link];
|
link = &doc_view->document->links[doc_view->vs->current_link];
|
||||||
|
Loading…
Reference in New Issue
Block a user