X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c99fde787781d43d2ada1e89d82a0e6a561656b6..4db310433eb20ec95643299b0d14fefaea44b8bd:/uip/show.c diff --git a/uip/show.c b/uip/show.c index b7f85fe1..0e7e7911 100644 --- a/uip/show.c +++ b/uip/show.c @@ -1,5 +1,4 @@ -/* - * show.c -- show/list messages +/* show.c -- show/list messages * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -96,6 +95,7 @@ main (int argc, char **argv) goto non_mhl_switches; case NHEADSW: headersw = 0; + /* FALLTHRU */ case CONCATSW: case NCONCATSW: non_mhl_switches: @@ -192,8 +192,7 @@ usage: } else { if (mode != SHOW) goto usage; - else - app_msgarg(&msgs, cp); + app_msgarg(&msgs, cp); } } @@ -387,7 +386,7 @@ is_nontext (char *msgnam) int passno; char c; - cp = add (buf, NULL); + cp = mh_xstrdup(buf); while (state == FLDPLUS) { bufsz = sizeof buf; state = m_getfld (&gstate, name, buf, &bufsz, fp); @@ -414,7 +413,7 @@ invalid: continue; case '(': i++; - /* and fall... */ + /* FALLTHRU */ default: continue; case ')': @@ -492,7 +491,7 @@ out: * Check Content-Transfer-Encoding field */ if (!strcasecmp (name, ENCODING_FIELD)) { - cp = add (buf, NULL); + cp = mh_xstrdup(buf); while (state == FLDPLUS) { bufsz = sizeof buf; state = m_getfld (&gstate, name, buf, &bufsz, fp);