wimlib_get_wim_info(): Fix setting of is_readonly v1.4.1
authorEric Biggers <ebiggers3@gmail.com>
Thu, 23 May 2013 16:40:53 +0000 (11:40 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 23 May 2013 16:40:53 +0000 (11:40 -0500)
src/wim.c

index 475ec19..ba0702f 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -351,7 +351,7 @@ wimlib_get_wim_info(WIMStruct *wim, struct wimlib_wim_info *info)
                info->total_bytes = 0;
        info->has_integrity_table = wim->hdr.integrity.offset != 0;
        info->opened_from_file = (wim->filename != NULL);
-       info->is_readonly == (wim->hdr.flags & WIM_HDR_FLAG_READONLY) ||
+       info->is_readonly = (wim->hdr.flags & WIM_HDR_FLAG_READONLY) ||
                             (wim->hdr.total_parts != 1) ||
                             (wim->filename && taccess(wim->filename, W_OK));
        info->has_rpfix = (wim->hdr.flags & WIM_HDR_FLAG_RP_FIX) != 0;