1bb790
diff --git a/zipnote.c b/zipnote.c
1bb790
index 5e02cb6..996f012 100644
1bb790
--- a/zipnote.c
1bb790
+++ b/zipnote.c
1bb790
@@ -661,7 +661,7 @@ char **argv;            /* command line tokens */
1bb790
     if ((r = zipcopy(z)) != ZE_OK)
1bb790
       ziperr(r, "was copying an entry");
1bb790
   }
1bb790
-  fclose(x);
1bb790
+  fclose(in_file);
1bb790
 
1bb790
   /* Write central directory and end of central directory with new comments */
1bb790
   if ((c = zftello(y)) == (zoff_t)-1)    /* get start of central */