From 8978c7dddc357a928b705f5bad1fc80a8b6dd212 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 21 Jun 2009 17:42:20 -0400 Subject: [PATCH] Merge from 2.1 branch: lzma re-open workaround. --- archivers/lzma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/archivers/lzma.c b/archivers/lzma.c index 675b9b4c..0552b0c5 100644 --- a/archivers/lzma.c +++ b/archivers/lzma.c @@ -649,6 +649,7 @@ static fvoid *LZMA_openRead(dvoid *opaque, const char *name, int *fileExists) BAIL_IF_MACRO(file == NULL, ERR_NO_SUCH_FILE, NULL); BAIL_IF_MACRO(file->folder == NULL, ERR_NOT_A_FILE, NULL); + file->position = 0; file->folder->references++; // Increase refcount for automatic cleanup... return(file);