summaryrefslogtreecommitdiffabout
path: root/src/main.c
authorSergey Poznyakoff <gray@gnu.org.ua>2011-03-09 23:14:48 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-03-09 23:14:48 (GMT)
commita77c100e0b642896348bf030ca178b5e5b6acf48 (patch) (side-by-side diff)
tree71be1dda6bdc4364f160329d1ac239f1089f914e /src/main.c
parentc0901350b140cc98873e39d00d8e5cec6ff8fb15 (diff)
downloadmailfromd-a77c100e0b642896348bf030ca178b5e5b6acf48.tar.gz
mailfromd-a77c100e0b642896348bf030ca178b5e5b6acf48.tar.bz2
More bugfixes
* src/main.c (main): Call mf_server_log_setup only for mode==MAILFROMD_DAEMON. (parse_opt): Allocate strings appended to args->trace_modules. * src/prog.c (instr_xmemstk): Adjust stack before pushing to it. (dump_catch): Print exception names.
Diffstat (limited to 'src/main.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index b16a554..fc1da42 100644
--- a/src/main.c
+++ b/src/main.c
@@ -644,7 +644,7 @@ parse_opt(int key, char *arg, struct argp_state *state)
mu_list_set_destroy_item(args->trace_modules,
destroy_trace_item);
}
- mu_list_append(args->trace_modules, arg ? arg: xstrdup("all"));
+ mu_list_append(args->trace_modules, xstrdup(arg ? arg : "all"));
break;
case ARGP_KEY_INIT:
@@ -1253,10 +1253,9 @@ main(int argc, char **argv)
|| yy_flex_debug || script_ydebug)
exit(EX_OK);
- mf_server_log_setup();
-
switch (mode) {
case MAILFROMD_DAEMON:
+ mf_server_log_setup();
provide_default_milter_server();
provide_default_callout_server();
break;

Return to:

Send suggestions and report system problems to the System administrator.