]> diplodocus.org Git - nmh/blobdiff - uip/picksbr.c
Replace `if (p) free(p)' with `mh_xfree(p)'.
[nmh] / uip / picksbr.c
index 0085b7a008679a8c33eabb33c03e1587f874e9bb..0217aa1527b65f8030cc5322118f59fe34dcc5a9 100644 (file)
@@ -422,7 +422,7 @@ nexp3 (void)
                free (n);
                return NULL;
            }
-           n->n_patbuf = getcpy (dp);
+           n->n_patbuf = mh_xstrdup(dp);
            return n;
 
        case PROTHR: 
@@ -916,11 +916,12 @@ tws_special (char *ap)
        if ((i -= tw->tw_wday) > 0)
            i -= 7;
     }
-    else
+    else {
        if (*ap != '-')
            return NULL;
-       else                    /* -ddd days ago */
-           i = atoi (ap);      /* we should error check this */
+       /* -ddd days ago */
+       i = atoi (ap);  /* we should error check this */
+    }
 
     clock += (long) ((60 * 60 * 24) * i);
     return dlocaltime (&clock);