From a77c100e0b642896348bf030ca178b5e5b6acf48 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 10 Mar 2011 01:14:48 +0200 Subject: 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. --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b16a554f..fc1da42c 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; -- cgit v1.2.1