summaryrefslogtreecommitdiffstats
path: root/src/sheet.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sheet.c')
-rw-r--r--src/sheet.c3
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;