From ddbe9e547163c44597299b9a9e5849ec045b989b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 2 Oct 2014 23:28:44 +0200 Subject: fixed wrong handling of log_targets_ option --- src/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index 483d6d7..0126362 100644 --- a/src/options.c +++ b/src/options.c @@ -332,7 +332,7 @@ static int options_parse_post(options_t* opt) opt->log_targets_[1] = NULL; } - if(!g_strv_length(opt->log_targets_)) { + if(!opt->log_targets_ || !g_strv_length(opt->log_targets_)) { opt->log_targets_ = g_new(gchar*, 2); if(!opt->log_targets_) return -127; opt->log_targets_[0] = g_strdup("syslog:3,sydra-rtp,daemon"); -- cgit v1.2.3