From 84b18e23bf859de3ddc40217ed62fa0ebeac9932 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 16 Jun 2018 20:52:11 +0200 Subject: [PATCH] convert: fix initialization of struct io's --- src/convert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/convert.c b/src/convert.c index 87afd6638..b02852851 100644 --- a/src/convert.c +++ b/src/convert.c @@ -82,7 +82,8 @@ check: if (optarg == endptr) struct format_type *fmt; struct log log; - struct io input, output; + struct io input = { .state = STATE_DESTROYED }; + struct io output = { .state = STATE_DESTROYED }; ret = log_init(&log, level, LOG_ALL); if (ret)