From 7606a46b922dfdb0627f1af6ab1432ae88c79d66 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 8 Mar 2014 19:01:12 -0800 Subject: 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 Reviewed-by: Peter Hutterer Reviewed-by: Daniel Stone --- geometry.c | 1 - 1 file changed, 1 deletion(-) (limited to 'geometry.c') 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; -- cgit v1.2.3