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