diff options
| author | Simon Tatham <anakin@pobox.com> | 2013-04-01 09:38:04 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2013-04-01 09:38:04 +0000 |
| commit | bce3f1bd2680b0f6bd6f6781b551c7c6b1e51f65 (patch) | |
| tree | f236abaaf92d977dcae7319d00ae91fd66e2f2b6 /grid.c | |
| parent | 76824e16925df7d4aceae5f382bf53ddc55b94a0 (diff) | |
| download | puzzles-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |