summaryrefslogtreecommitdiff
path: root/render/imagemap.c
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-08-08 20:12:38 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-08-08 20:12:38 +0000
commit914cbeacfe860c5898a5d74d32aa24ee40570fd7 (patch)
treec7a59fdff598b04b9c676d32f8cdeb95b9af3c79 /render/imagemap.c
parent82cc44fc4ece9d7e646b1072d7269c161bd44f73 (diff)
downloadnetsurf-914cbeacfe860c5898a5d74d32aa24ee40570fd7.tar.gz
netsurf-914cbeacfe860c5898a5d74d32aa24ee40570fd7.tar.bz2
C89
svn path=/trunk/netsurf/; revision=4963
Diffstat (limited to 'render/imagemap.c')
-rw-r--r--render/imagemap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/imagemap.c b/render/imagemap.c
index 2a74307ed..af442484f 100644
--- a/render/imagemap.c
+++ b/render/imagemap.c
@@ -450,6 +450,8 @@ bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry)
}
if (new_map->type != IMAGEMAP_DEFAULT) {
+ int x, y;
+ float *xcoords, *ycoords;
/* coordinates are a comma-separated list of values */
val = strtok(coords, ",");
num = 1;
@@ -519,8 +521,6 @@ bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry)
xmlFree(coords);
return false;
}
- int x, y;
- float *xcoords, *ycoords;
while (val) {
x = atoi(val);
val = strtok('\0', ",");