1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Move variable out of loop to fix uninitialized warning caused by goto label

This commit is contained in:
Jonas Fonseca 2006-07-22 17:06:05 +02:00 committed by Jonas Fonseca
parent 7c7a0bb890
commit 71e569c129

View File

@ -923,6 +923,11 @@ point_intersect(struct point *p1, int l1, struct point *p2, int l2)
static int
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);
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 link *link;
int len;
int utf8 = 0;
#ifdef CONFIG_UTF_8
utf8 = doc_view->document->options.utf8;
#endif
nt:
link = &doc_view->document->links[doc_view->vs->current_link];