diff options
author | mongo <andmarti@gmail.com> | 2023-06-01 10:17:33 -0300 |
---|---|---|
committer | mongo <andmarti@gmail.com> | 2023-06-01 10:17:33 -0300 |
commit | 402742a7cab0b66a8916043624e4b53f8cc64690 (patch) | |
tree | 6d6528892dd3ac57b970afa54afe342066dde4b0 /src/sheet.c | |
parent | ccad70412e28720e0e277c32cac5b140ed271916 (diff) |
ansi C
Diffstat (limited to 'src/sheet.c')
-rw-r--r-- | src/sheet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sheet.c b/src/sheet.c index f399623..6782d94 100644 --- a/src/sheet.c +++ b/src/sheet.c @@ -204,7 +204,8 @@ void delete_sheet(struct roman * roman, struct sheet * sh, int flg_free) { // that could refer to this one by rebuilding the graph. if (! flg_free) rebuild_graph(); - for (int row = 0; sh->tbl != NULL && row < sh->maxrows; row++) { + int row; + for (row = 0; sh->tbl != NULL && row < sh->maxrows; row++) { if (sh->tbl[row] != NULL) { free(sh->tbl[row]); sh->tbl[row] = NULL; |