From 914cbeacfe860c5898a5d74d32aa24ee40570fd7 Mon Sep 17 00:00:00 2001 From: François Revel Date: Fri, 8 Aug 2008 20:12:38 +0000 Subject: C89 svn path=/trunk/netsurf/; revision=4963 --- render/imagemap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/imagemap.c') 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', ","); -- cgit v1.2.3