Skip to content

Commit

Permalink
Merge branch 'code/hygiene'
Browse files Browse the repository at this point in the history
* code/hygiene:
  hygiene, before accessing the file-mapped header upon ute_close() check if it's mapped
  • Loading branch information
hroptatyr committed Aug 28, 2015
2 parents 8f55930 + d7805ae commit 7e67b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utefile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,7 @@ ute_close(utectx_t ctx)
/* final compression */
lzma_comp(ctx);
} else if (!(ctx->hdrc->flags & UTEHDR_FLAG_COMPRESSED) &&
(ctx->hdrp->flags & UTEHDR_FLAG_COMPRESSED) &&
ctx->hdrp && (ctx->hdrp->flags & UTEHDR_FLAG_COMPRESSED) &&
(ctx->hdrc->flags & UTEHDR_FLAG_DIRTY)) {
/* we're asked for decompression */
ctx->hdrc->flags |= UTEHDR_FLAG_COMPRESSED;
Expand Down

0 comments on commit 7e67b22

Please sign in to comment.