From e873d703e956d3e2e68b9e18562983b029b5c7a8 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Thu, 28 Jul 2011 11:07:47 +0300 Subject: options: change option parsing to use bstr Using bstr allows simpler parsing code, especially because it avoids the need to modify or copy strings just to terminate extracted substrings. --- parser-cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser-cfg.c') diff --git a/parser-cfg.c b/parser-cfg.c index 5b39c32711..720b8e243f 100644 --- a/parser-cfg.c +++ b/parser-cfg.c @@ -233,7 +233,7 @@ int m_config_parse_config_file(m_config_t *config, const char *conffile) tmp = m_config_set_profile_option(config, profile, opt, param); } else - tmp = m_config_set_option(config, opt, param, false); + tmp = m_config_set_option0(config, opt, param, false); if (tmp < 0) { PRINT_LINENUM; if (tmp == M_OPT_UNKNOWN) { -- cgit v1.2.3