aboutsummaryrefslogtreecommitdiff
path: root/archivers/zip/files/patch-zipnote.c
blob: 01b1d97f91f20349bc6d909403c4d7243bf356f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
From: Christian Spieler
Subject: zipnote.c: Close in_file instead of undefined file x
Bug-Debian: https://bugs.debian.org/628594
X-Debian-version: 3.0-4

--- zipnote.c.orig	2008-05-08 08:17:08 UTC
+++ zipnote.c
@@ -661,7 +661,7 @@ char **argv;            /* command line tokens */
     if ((r = zipcopy(z)) != ZE_OK)
       ziperr(r, "was copying an entry");
   }
-  fclose(x);
+  fclose(in_file);
 
   /* Write central directory and end of central directory with new comments */
   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */