diff options
Diffstat (limited to 'lib/libppmd.c')
-rw-r--r-- | lib/libppmd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libppmd.c b/lib/libppmd.c index 1234d89f..235df40d 100644 --- a/lib/libppmd.c +++ b/lib/libppmd.c @@ -1053,7 +1053,6 @@ ppmd_fill_drawprocp(pixel ** const pixels, const void * const clientdata) { fillobj * fh; - coord * ocp; fh = (fillobj*) clientdata; @@ -1070,8 +1069,6 @@ ppmd_fill_drawprocp(pixel ** const pixels, REALLOCARRAY(fh->coords, fh->size); if (fh->coords == NULL) pm_error("out of memory enlarging a fillhandle"); - - ocp = &(fh->coords[fh->n - 1]); } /* Check for extremum and set the edge number. */ @@ -1081,6 +1078,7 @@ ppmd_fill_drawprocp(pixel ** const pixels, fh->ydir = 0; fh->startydir = 0; } else { + coord * const ocp = &(fh->coords[fh->n - 1]); int const dx = p.x - ocp->point.x; int const dy = p.y - ocp->point.y; |