From 8636eb77c5f9f1e49a12e3e1653fe4c2e8e0bfc3 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Sat, 15 Jan 2011 22:26:27 +0200 Subject: options: add special -leak-report option Add a special option "-leak-report" that enables talloc leak reporting. It only works if it's given as the first argument. The code abuses the CONF_TYPE_PRINT option type to make main option parsing ignore the option. The parser incorrectly consumed the following commandline argument as a "parameter" for options of this type when they had the flag to not exit after printing the message. Fix this. It makes no difference for any previously existing option I think. --- m_option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'm_option.c') diff --git a/m_option.c b/m_option.c index a0f01e6344..3cca348b1e 100644 --- a/m_option.c +++ b/m_option.c @@ -970,7 +970,7 @@ static int parse_print(const m_option_t* opt,const char *name, const char *param if(opt->priv == NULL) return M_OPT_EXIT; - return 1; + return 0; } const m_option_type_t m_option_type_print = { -- cgit v1.2.3