When compiling format strings, nmh attempts to avoid multiple parsing
[mmh] / uip / scansbr.c
index 6fd4bb3..be68bf8 100644 (file)
@@ -3,6 +3,10 @@
  * scansbr.c -- routines to help scan along...
  *
  * $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.
  */
 
 #include <h/mh.h>
@@ -327,9 +331,9 @@ finished:
                if (datecomp->c_tws == NULL)
                    adios (NULL, "unable to allocate tws buffer");
                *datecomp->c_tws = *dlocaltime ((time_t *) &st.st_mtime);
-               datecomp->c_flags = -1;
+               datecomp->c_flags |= CF_DATEFAB|CF_TRUE;
            } else {
-               datecomp->c_flags = 0;
+               datecomp->c_flags &= ~CF_DATEFAB;
            }
        }
     }