chiark / gitweb /
quine.c: Fix double-close bug. master
authorMark Wooding <mdw@distorted.org.uk>
Wed, 19 May 2010 13:34:04 +0000 (14:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 19 May 2010 13:34:04 +0000 (14:34 +0100)
quine.c

diff --git a/quine.c b/quine.c
index 3d3c35b..c733142 100644 (file)
--- a/quine.c
+++ b/quine.c
@@ -263,7 +263,6 @@ static void quine__doFile(FILE *fp, FILE *ifp)
     }
     fputs("\",\n", fp);
   }
-  fclose(ifp);
 
   fputs("0\n};\n\n", fp);
 }