Commit 583f4579 583f4579198b2ac530b4c52f078ff9cc02616f61 by Sergey Poznyakoff

Minor fix.

* mh/mhn.c (normalize_path): First arg is const char *.
(store_handler): Avoid unnecessary allocations (and coredumps,
if mhn-storage profile is not set.
1 parent e5b11edf
2008-07-19 Sergey Poznyakoff <gray@gnu.org.ua>
Minor fix.
* mh/mhn.c (normalize_path): First arg is const char *.
(store_handler): Avoid unnecessary allocations (and coredumps,
if mhn-storage profile is not set.
Finish namespace cleanup in libsieve.
* libsieve/actions.c, libsieve/comparator.c, libsieve/conf.c,
......
......@@ -1512,7 +1512,7 @@ mhn_show ()
/* ***************************** Store Mode ****************************** */
char *
normalize_path (char *cwd, char *path)
normalize_path (const char *cwd, char *path)
{
int len;
char *p;
......@@ -1615,7 +1615,7 @@ store_handler (mu_message_t msg, msg_part_t part, char *type, char *encoding,
&& argv[i][0] == '='
&& ++i < argc)
{
name = normalize_path (xstrdup (dir), argv[i]);
name = normalize_path (dir, argv[i]);
break;
}
}
......@@ -1639,7 +1639,7 @@ store_handler (mu_message_t msg, msg_part_t part, char *type, char *encoding,
&& argv[i][0] == '='
&& ++i < argc)
{
name = normalize_path (xstrdup (dir), argv[i]);
name = normalize_path (dir, argv[i]);
break;
}
}
......