summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-10-25 17:16:55 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-10-25 17:16:55 +0300
commit6203ae65f53758a4b893e6e176be7c153a31bef0 (patch)
tree1382ff80d15ac5d8640b252ceac2ba9adc448ae6
parent08f69cc36908f376659369a3c5ee2f63a75f1c73 (diff)
downloadmailutils-6203ae65f53758a4b893e6e176be7c153a31bef0.tar.gz
mailutils-6203ae65f53758a4b893e6e176be7c153a31bef0.tar.bz2
Minor fix.
* mh/mh_init.c (mh_safe_make_file_name): Avoid gcc warnings.
-rw-r--r--mh/mh_init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mh/mh_init.c b/mh/mh_init.c
index ca2468628..9153476c0 100644
--- a/mh/mh_init.c
+++ b/mh/mh_init.c
@@ -1030,13 +1030,13 @@ mh_draft_message (const char *name, const char *msgspec, char **pname)
char *
mh_safe_make_file_name (const char *dir, const char *file)
{
- file = mu_make_file_name (dir, file);
- if (!file)
+ char *name = mu_make_file_name (dir, file);
+ if (!name)
{
mu_diag_funcall (MU_DIAG_ERROR, "mu_make_file_name", NULL, ENOMEM);
abort ();
}
- return file;
+ return name;
}

Return to:

Send suggestions and report system problems to the System administrator.