From 973d3115034a175df2d26ac252252071836f511a Mon Sep 17 00:00:00 2001 From: Shawn Webb Date: Fri, 4 Apr 2014 15:56:37 -0400 Subject: [PATCH] Initialize the opened variable in the right spot --- libclamav/nsis/nulsft.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libclamav/nsis/nulsft.c b/libclamav/nsis/nulsft.c index 3c41a6f5a..ff01b116a 100644 --- a/libclamav/nsis/nulsft.c +++ b/libclamav/nsis/nulsft.c @@ -106,7 +106,6 @@ static int nsis_init(struct nsis_st *n) { nsis_inflateInit(&n->z); n->freecomp=0; } - n->opened = 0; return CL_SUCCESS; } @@ -208,6 +207,7 @@ static int nsis_unpack_next(struct nsis_st *n, cli_ctx *ctx) { snprintf(n->ofn, 1023, "%s"PATHSEP"headers", n->dir); n->fno++; + n->opened = 0; if (!n->solid) { if (fmap_readn(n->map, &size, n->curpos, 4)!=4) {