Skip to content

Commit d0ce659

Browse files
committed
fix, use dt_io_clear_zones() in all tools, fixes issue #80
1 parent da47c62 commit d0ce659

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/dtest.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ main(int argc, char *argv[])
142142
res = res == 1 || res == 0 ? 0 : 1;
143143
}
144144
out:
145-
if (fromz != NULL) {
146-
zif_close(fromz);
147-
}
145+
dt_io_clear_zones();
148146
if (argi->from_locale_arg) {
149147
setilocale(NULL);
150148
}

src/dzone.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,6 @@ nor a date/time corresponding to the given input formats", inp);
362362
free(d);
363363
}
364364

365-
if (fromz != NULL) {
366-
zif_close(fromz);
367-
}
368365
if (argi->from_locale_arg) {
369366
setilocale(NULL);
370367
}

0 commit comments

Comments
 (0)