lzms-compress.c: Fix initialization of lzms_default
authorEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 15:59:20 +0000 (09:59 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 15:59:20 +0000 (09:59 -0600)
src/lzms-compress.c

index 3354bd9..6f17f5d 100644 (file)
@@ -1168,7 +1168,9 @@ lzms_free_compressor(void *_ctx)
 }
 
 static const struct wimlib_lzms_compressor_params lzms_default = {
-       .hdr = sizeof(struct wimlib_lzms_compressor_params),
+       .hdr = {
+               .size = sizeof(struct wimlib_lzms_compressor_params),
+       },
        .min_match_length = 2,
        .max_match_length = UINT32_MAX,
        .nice_match_length = 32,