summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-clock.c b/src/test/test-clock.c
index 0949793e5f..84f775e5bc 100644
--- a/src/test/test-clock.c
+++ b/src/test/test-clock.c
@@ -28,8 +28,8 @@
static void test_clock_is_localtime(void) {
char adjtime[] = "/tmp/test-adjtime.XXXXXX";
- _cleanup_close_ int fd = -1;
- FILE* f;
+ int fd = -1;
+ _cleanup_fclose_ FILE* f = NULL;
static const struct scenario {
const char* contents;