summaryrefslogtreecommitdiff
path: root/desktop/selection.c
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-07-29 09:28:45 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-07-29 09:28:45 +0000
commit34e0f4db3fa7994614e37be9973a7e1ef593b0be (patch)
tree57998abd172a009495c36770f2fae347f2ac1b94 /desktop/selection.c
parentd49fc659235759fd8f09a02ae8bdca7a61af5f0b (diff)
downloadnetsurf-34e0f4db3fa7994614e37be9973a7e1ef593b0be.tar.gz
netsurf-34e0f4db3fa7994614e37be9973a7e1ef593b0be.tar.bz2
- C89 again
- include beos options for BeOS svn path=/trunk/netsurf/; revision=4794
Diffstat (limited to 'desktop/selection.c')
-rw-r--r--desktop/selection.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/selection.c b/desktop/selection.c
index a66b12afd..2113f7d0c 100644
--- a/desktop/selection.c
+++ b/desktop/selection.c
@@ -548,6 +548,8 @@ bool selection_traverse(struct selection *s, seln_traverse_handler handler,
struct content *c;
save_text_whitespace before = WHITESPACE_NONE;
bool first = true;
+ const char *text;
+ size_t length;
if (!selection_defined(s))
return true; /* easy case, nothing to do */
@@ -560,8 +562,7 @@ bool selection_traverse(struct selection *s, seln_traverse_handler handler,
c = s->bw->current_content;
if (!c) return true;
- size_t length;
- const char *text = textplain_get_raw_data(c, s->start_idx,
+ text = textplain_get_raw_data(c, s->start_idx,
s->end_idx, &length);
if (text && !handler(text, length, NULL, handle, NULL, 0))