]> git.marmaro.de Git - mmh/blobdiff - uip/mhfree.c
[bug #4302] errno is not always an extern int
[mmh] / uip / mhfree.c
index 57518015f9cdb9816c56d0a259b5bb6f9d15a373..9d064ba1c2902d4761c3033955de2cd575afe2a1 100644 (file)
@@ -15,8 +15,6 @@
 #include <h/mime.h>
 #include <h/mhparse.h>
 
-extern int errno;
-
 /*
  * prototypes
  */
@@ -271,6 +269,7 @@ free_encoding (CT ct, int toplevel)
        if (ce->ce_unlink)
            unlink (ce->ce_file);
        free (ce->ce_file);
+       ce->ce_file = NULL;
     }
 
     if (toplevel) {