summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-02 23:28:44 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-02 23:28:44 +0200
commitddbe9e547163c44597299b9a9e5849ec045b989b (patch)
tree4ccffb297cf5b9bf01d9d876b0737949c8e6b99b /src
parentrenamed the sydra utility to sydra-rtp (diff)
fixed wrong handling of log_targets_ option
Diffstat (limited to 'src')
-rw-r--r--src/options.c2
1 files changed, 1 insertions, 1 deletions
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");