continue;
case LIBSW:
+ if (!(cp = *argp++) || *cp == '-')
+ adios (NULL, "missing argument to %s", argp[-2]);
+ /* create a minimal context */
+ if (context_foil (cp) == -1)
+ done(1);
+ continue;
+
case ANNOSW:
- /* -library & -idanno switch ignored */
+ /* -idanno switch ignored */
if (!(cp = *argp++) || *cp == '-')
adios (NULL, "missing argument to %s", argp[-2]);
continue;
out = stdout;
}
else {
+#ifdef HAVE_MKSTEMP
+ mkstemp (tmpfil);
+#else
mktemp (tmpfil);
+#endif
if ((out = fopen (tmpfil, "w")) == NULL)
adios (tmpfil, "unable to create");
chmod (tmpfil, 0600);
}
execv ( sendmail, sargv);
adios ( sendmail, "can't exec");
+ return 0; /* dead code to satisfy the compiler */
}
/* DRAFT GENERATION */
if (hdr->flags & HFCC) {
if ((cp = strrchr(str, '\n')))
*cp = 0;
- for (cp = pp = str; cp = strchr(pp, ','); pp = cp) {
+ for (cp = pp = str; (cp = strchr(pp, ',')); pp = cp) {
*cp++ = 0;
insert_fcc (hdr, pp);
}
}
#endif /* notdef */
- if (*str != '\n' && *str != '\0')
+ if (*str != '\n' && *str != '\0') {
if (aliasflg && hdr->flags & HTRY) {
/* this header contains address(es) that we have to do
* alias expansion on. Because of the saved state in
} else {
fprintf (out, "%s: %s", name, str );
}
+ }
}