From bce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 1 Apr 2013 09:38:04 +0000 Subject: [PATCH] Greg Hewgill points out a code path on which the angle parameter to the Penrose grid generation function can fail to be initialised. [originally from svn r9798] --- grid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.c b/grid.c index 658fd4d..cb62eb7 100644 --- a/grid.c +++ b/grid.c @@ -2635,7 +2635,7 @@ static grid *grid_new_penrose(int width, int height, int which, char *desc) if (sscanf(desc, "G%d,%d,%d", &xoff, &yoff, &aoff) != 3) assert(!"Invalid grid description."); } else { - xoff = yoff = 0; + xoff = yoff = aoff = 0; } xsz = width * tilesize;