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