From b5756838f326db5c579d2413599bb9a1c77e6f42 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 11 Mar 2013 19:58:28 +0000 Subject: [PATCH] Remove a redundant and also erroneous memset. (If you're going to memset a struct to 0 before filling in the fields you care about, do use sizeof the struct rather than sizeof the pointer; but also, if you're filling in _every_ field, there's no need to bother anyway.) [originally from svn r9773] --- lightup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lightup.c b/lightup.c index 5beacc7..9131428 100644 --- a/lightup.c +++ b/lightup.c @@ -657,7 +657,6 @@ static void list_lights(game_state *state, int ox, int oy, int origin, { int x,y; - memset(lld, 0, sizeof(lld)); lld->ox = lld->minx = lld->maxx = ox; lld->oy = lld->miny = lld->maxy = oy; lld->include_origin = origin;