X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-board.c;h=582b85fd6469e7cbcc1d460eb02dc50ef51684b6;hp=9a8d719f95e9a173bc76cfd14d93c1832008a195;hb=ad9f96f734bb560c25ceca4facc85a84f4c3993f;hpb=c425d769ad013c2f76bd15e433fbda4e66436e05 diff --git a/src/ttt-board.c b/src/ttt-board.c index 9a8d719..582b85f 100644 --- a/src/ttt-board.c +++ b/src/ttt-board.c @@ -25,10 +25,11 @@ void ttt_board_init (ttt_board_t *board) { - for (int i; i < TTT_BOARD_MAX_CELLS; i++) - { - &board->cells[i] = 0; - } + int i; + for (i = 0; i < TTT_BOARD_MAX_CELLS; i++) + { + board->cells[i] = 0; + } } /* Initialize a board from its string representation.