Fixed programming mistakes, detected by cppcheck.
[mmh] / uip / inc.c
index be6be22..5142ae3 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -337,7 +337,7 @@ main(int argc, char **argv)
                        chmod(audfile, m_gmprot());
 
                fprintf(aud, from ? "<<inc>> %s  -ms %s\n" : "<<inc>> %s\n",
-                        dtimenow(0), from);
+                        dtimenow(), from);
        }
 
 #ifdef MHE
@@ -365,7 +365,7 @@ main(int argc, char **argv)
        /*
        ** Get the mail from file (usually mail spool)
        */
-       m_unknown(in);  /* the MAGIC invocation... */
+       thisisanmbox(in);
        hghnum = msgnum = mp->hghmsg;
        for (;;) {
                /*
@@ -437,6 +437,7 @@ main(int argc, char **argv)
                */
                break;
        }
+       free(maildir_copy);
 
        if (incerr < 0) {  /* error */
                if (locked) {