From 7de96275dd6e3b6997e799413e4537561041e199 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Oct 2013 22:32:39 +0200 Subject: ConfigData: use std::string for config_param::value --- src/LogInit.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/LogInit.cxx') diff --git a/src/LogInit.cxx b/src/LogInit.cxx index d5e5c1d1f..433eda51a 100644 --- a/src/LogInit.cxx +++ b/src/LogInit.cxx @@ -253,7 +253,8 @@ log_init(bool verbose, bool use_stdout, Error &error) if (verbose) log_threshold = G_LOG_LEVEL_DEBUG; else if ((param = config_get_param(CONF_LOG_LEVEL)) != NULL) - log_threshold = parse_log_level(param->value, param->line); + log_threshold = parse_log_level(param->value.c_str(), + param->line); if (use_stdout) { log_init_stdout(); @@ -272,7 +273,7 @@ log_init(bool verbose, bool use_stdout, Error &error) return false; #endif #ifdef HAVE_SYSLOG - } else if (strcmp(param->value, "syslog") == 0) { + } else if (strcmp(param->value.c_str(), "syslog") == 0) { log_init_syslog(); return true; #endif -- cgit v1.2.3