From 110ed8edf187f70321ad0a288be0de36b5076681 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 20 Jun 2006 23:10:36 +0200 Subject: [PATCH] audiod: parse receiver arguments in reverse order This allows to overwrite the receiver args of the config file by command line options. --- audiod.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audiod.c b/audiod.c index d4a29720..ac692bc1 100644 --- a/audiod.c +++ b/audiod.c @@ -752,9 +752,10 @@ static int init_receivers(void) PARA_INFO_LOG("initializing %s receiver\n", receivers[i].name); receivers[i].init(&receivers[i]); } - for (i = 0; i < conf.receiver_given; i++) { + for (i = conf.receiver_given - 1; i >= 0; i--) { char *arg = conf.receiver_arg[i]; char *recv = strchr(arg, ':'); + PARA_INFO_LOG("arg: %s\n", arg); ret = -E_MISSING_COLON; if (!recv) goto out; -- 2.39.5