X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fpolyominoes.c;h=0c410eafb77ab5e08cac73d99b6f5e1c1c6123c7;hp=a3037d281c381e11ae6130b0cc39973356a7a03c;hb=aa75c7476aeaa84cf3abc192b376a8b03c325213;hpb=88cfe534a698a0562e81345957a50714af1453bc diff --git a/hacks/polyominoes.c b/hacks/polyominoes.c index a3037d28..0c410eaf 100644 --- a/hacks/polyominoes.c +++ b/hacks/polyominoes.c @@ -513,7 +513,7 @@ static int score_point(polyominoesstruct *sp, int x, int y, int min_score_so_far) { int poly_no, point_no, transform_index, i, attachable; - point_type attach_point, target_point; + point_type attach_point = { 0, 0 }, target_point = { 0, 0 }; int score = 0; if (x>=1 && xwidth-1 && y>=1 && yheight-1 && @@ -586,7 +586,7 @@ static void detach(polyominoesstruct *sp, int *poly_no, int *point_no, int *transform_index, point_type *attach_point, int rot180) { int i; - point_type target_point; + point_type target_point = { 0, 0 }; if (sp->nr_attached == 0) return; sp->nr_attached--; @@ -614,7 +614,7 @@ void detach(polyominoesstruct *sp, int *poly_no, int *point_no, int *transform_i static int attach(polyominoesstruct *sp, int poly_no, int point_no, int transform_index, point_type attach_point, int rot180, int *reason_to_not_attach) { - point_type target_point; + point_type target_point = { 0, 0 }; int i; int attachable = 1, worst_reason_not_to_attach = 1000000000;