summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d3bc590)
Only a few cases where it's obvious that the first parameter will not be
NULL.
/* else, use the current folder */
if (!folder)
/* else, use the current folder */
if (!folder)
- folder = add (getfolder (1), NULL);
+ folder = mh_xstrdup(getfolder(1));
if (!(mp = folder_read (folder, 0)))
adios (NULL, "unable to read folder %s", folder);
if (!(mp = folder_read (folder, 0)))
adios (NULL, "unable to read folder %s", folder);
/*
* Cache the current directory before we do any chdirs()'s.
*/
/*
* Cache the current directory before we do any chdirs()'s.
*/
- cwd = add(pwd(), NULL);
+ cwd = mh_xstrdup(pwd());
if (!context_find ("path"))
free (path ("./", TFOLDER));
if (!context_find ("path"))
free (path ("./", TFOLDER));
/*
* Cache the current directory before we do any chdirs()'s.
*/
/*
* Cache the current directory before we do any chdirs()'s.
*/
- cwd = add(pwd(), NULL);
+ cwd = mh_xstrdup(pwd());
if (!context_find ("path"))
free (path ("./", TFOLDER));
if (!context_find ("path"))
free (path ("./", TFOLDER));
create_folder(m_mailpath(folder), 0, exit);
/* Record the folder name */
create_folder(m_mailpath(folder), 0, exit);
/* Record the folder name */
- ct->c_folder = add (folder, NULL);
+ ct->c_folder = mh_xstrdup(folder);
if (cp[1])
free (folder);
if (cp[1])
free (folder);