new_wim_struct(): Use filedes_invalidate()
authorEric Biggers <ebiggers3@gmail.com>
Tue, 14 Jan 2014 18:56:20 +0000 (12:56 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 14 Jan 2014 18:56:24 +0000 (12:56 -0600)
src/wim.c

index f4353a1..11e2f90 100644 (file)
--- 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);