From bff1c2d391d49caf2f93b4a1e902973c22026810 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 25 Feb 2012 04:06:58 +0000 Subject: [PATCH] Avoid a crash when obtaining the configuration --- src/plugins/oss.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/oss.c b/src/plugins/oss.c index 615ee8f..3fcdbf7 100644 --- a/src/plugins/oss.c +++ b/src/plugins/oss.c @@ -194,7 +194,8 @@ static int _oss_open(OSS * oss) if(oss->fd >= 0) close(oss->fd); - if((p = oss->helper->config_get(NULL, "oss", "mixer")) == NULL) + if((p = oss->helper->config_get(oss->helper->phone, "oss", "mixer")) + == NULL) p = "/dev/mixer"; if((oss->fd = open(p, O_RDWR)) < 0) {