diff options
Diffstat (limited to 'render/imagemap.c')
-rw-r--r-- | render/imagemap.c | 4 |
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', ","); |