summaryrefslogtreecommitdiff
path: root/geometry.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-03-08 19:01:12 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-03-10 23:25:26 -0700
commit7606a46b922dfdb0627f1af6ab1432ae88c79d66 (patch)
tree0ae3d9865be3c71c306c399c8623342cb2eedf00 /geometry.c
parent6c2d3b0891f7be6ef4895be75188aa1c6f530bfc (diff)
downloadxorg-app-xkbcomp-7606a46b922dfdb0627f1af6ab1432ae88c79d66.tar.gz
Remove useless assignment to 'outline' variable
Flagged by cppcheck 1.64: [app/xkbcomp/geometry.c:2426] -> [app/xkbcomp/geometry.c:2427]: (performance) Variable 'outline' is reassigned a value before the old one has been used. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'geometry.c')
-rw-r--r--geometry.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/geometry.c b/geometry.c
index 2daa213..5d65316 100644
--- a/geometry.c
+++ b/geometry.c
@@ -2423,7 +2423,6 @@ HandleShapeBody(ShapeDef * def, ShapeInfo * si, unsigned merge,
ol->points, info);
continue;
}
- outline = NULL;
outline = &si->outlines[nOut++];
outline->num_points = ol->nPoints;
outline->corner_radius = si->dfltCornerRadius;