aboutsummaryrefslogtreecommitdiff
path: root/grid.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2013-04-01 09:38:04 +0000
committerSimon Tatham <anakin@pobox.com>2013-04-01 09:38:04 +0000
commitbce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65 (patch)
treef236abaaf92d977dcae7319d00ae91fd66e2f2b6 /grid.c
parent76824e16925df7d4aceae5f382bf53ddc55b94a0 (diff)
downloadpuzzles-bce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65.zip
puzzles-bce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65.tar.gz
puzzles-bce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65.tar.bz2
puzzles-bce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65.tar.xz
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]
Diffstat (limited to 'grid.c')
-rw-r--r--grid.c2
1 files changed, 1 insertions, 1 deletions
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;