nwhat = 0;
continue;
case BILDSW:
- buildsw++; /* fall... */
+ buildsw++;
+ /* FALLTHRU */
case NWHATSW:
nwhat++;
continue;
if (fcc)
fcc = add (", ", fcc);
fcc = add (cp, fcc);
- if (dp)
- free (dp);
+ mh_xfree(dp);
continue;
case FILESW:
if (ccme == -1)
ccme = groupreply;
- cwd = getcpy (pwd ());
+ cwd = mh_xstrdup(pwd ());
if (!context_find ("path"))
free (path ("./", TFOLDER));
context_save (); /* save the context file */
}
- msg = file ? file : getcpy (m_name (mp->lowsel));
+ msg = file ? file : mh_xstrdup(m_name (mp->lowsel));
if ((in = fopen (msg, "r")) == NULL)
adios (msg, "unable to open");
fclose (in);
{
- char *filename = concat (mp->foldpath, "/", msg, NULL);
+ char *filename = file ? file : concat (mp->foldpath, "/", msg, NULL);
for (n = 0; n < svector_size (convert_types); ++n) {
add_convert_header (svector_at (convert_types, n),
svector_at (convert_args, n),
filename, drft);
}
- free (filename);
+ if (! file) {
+ free (filename);
+ }
}
if (nwhat)