]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_new.c
Don't `else' after return. Simplify control flow.
[nmh] / sbr / fmt_new.c
index c1bc7c730e83edfccf4462ba2094ea50d3af89fb..078831a589e2ec4a7ccc281f2db3b94f17a66251 100644 (file)
@@ -2,8 +2,6 @@
 /*
  * fmt_new.c -- read format file/string and normalize
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
@@ -30,7 +28,7 @@ char *
 new_fs (char *form, char *format, char *default_fs)
 {
     struct stat st;
-    register FILE *fp;
+    FILE *fp;
 
     if (formats)
        free (formats);
@@ -60,6 +58,13 @@ new_fs (char *form, char *format, char *default_fs)
 }
 
 
+void
+free_fs (){
+    free (formats);
+    formats = 0;
+}
+
+
 /*
  * Expand escapes in format strings
  */