]> diplodocus.org Git - nmh/blobdiff - uip/picksbr.c
Don't `else' after return. Simplify control flow.
[nmh] / uip / picksbr.c
index 0085b7a..0217aa1 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);