From d92446abf69f8a9eff9aed1123f37122647cc7e0 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 14 Jan 2014 12:56:20 -0600 Subject: [PATCH] new_wim_struct(): Use filedes_invalidate() --- src/wim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wim.c b/src/wim.c index f4353a1d..11e2f904 100644 --- a/src/wim.c +++ b/src/wim.c @@ -87,8 +87,8 @@ new_wim_struct(void) { WIMStruct *wim = CALLOC(1, sizeof(WIMStruct)); if (wim) { - wim->in_fd.fd = -1; - wim->out_fd.fd = -1; + filedes_invalidate(&wim->in_fd); + filedes_invalidate(&wim->out_fd); wim->out_pack_compression_type = wim_default_pack_compression_type(); wim->out_pack_chunk_size = wim_default_pack_chunk_size( wim->out_pack_compression_type); -- 2.43.0