summaryrefslogtreecommitdiffstats
path: root/chrome/installer/mac
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/installer/mac')
-rw-r--r--chrome/installer/mac/third_party/bsdiff/goobspatch.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/installer/mac/third_party/bsdiff/goobspatch.c b/chrome/installer/mac/third_party/bsdiff/goobspatch.c
index 385b081..5287825 100644
--- a/chrome/installer/mac/third_party/bsdiff/goobspatch.c
+++ b/chrome/installer/mac/third_party/bsdiff/goobspatch.c
@@ -194,9 +194,6 @@ static size_t xzread(xzfile *xzf, u_char *buf, size_t len, lzma_ret *err)
return 0;
} else if (feof(xzf->f)) {
xzf->eof = 1;
- /* LZMA_FINISH is not critical because
- * LZMA_CONCATENATED is not in use. */
- action = LZMA_FINISH;
}
}
@@ -211,6 +208,11 @@ static size_t xzread(xzfile *xzf, u_char *buf, size_t len, lzma_ret *err)
return 0;
}
+ /* LZMA_FINISH is not critical because
+ * LZMA_CONCATENATED is not in use. */
+ if (xzf->eof)
+ action = LZMA_FINISH;
+
/* Run the decoder. */
xzf->err = lzma_code(&xzf->ls, action);
if (xzf->err == LZMA_STREAM_END) {