aboutsummaryrefslogtreecommitdiffstats
path: root/main/dsp.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-05 16:39:22 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-05 16:39:22 +0000
commit2e5953ed87758d87ea02095f0a9476029c099f8d (patch)
treef2c28e74c3c3b7aff70ebc2c84d7ec37740de564 /main/dsp.c
parent198829f2db3d8dcaa76188dc4fe6db06e7b8cbb8 (diff)
Fix code up to what it was meant to be.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@106110 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/dsp.c')
-rw-r--r--main/dsp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/dsp.c b/main/dsp.c
index a9a787459..e2de31af4 100644
--- a/main/dsp.c
+++ b/main/dsp.c
@@ -1547,7 +1547,6 @@ static int _dsp_init(int reload)
{
struct ast_flags config_flags = { reload ? CONFIG_FLAG_FILEUNCHANGED : 0 };
struct ast_config *cfg;
- struct ast_variable *var;
cfg = ast_config_load(CONFIG_FILE_NAME, config_flags);
@@ -1556,7 +1555,7 @@ static int _dsp_init(int reload)
value = ast_variable_retrieve(cfg, "default", "silencethreshold");
if (value && sscanf(value, "%d", &thresholds[THRESHOLD_SILENCE]) != 1) {
- ast_log(LOG_WARNING, "%s: '%s' is not a valid silencethreshold value\n", CONFIG_FILE_NAME, var->value);
+ ast_log(LOG_WARNING, "%s: '%s' is not a valid silencethreshold value\n", CONFIG_FILE_NAME, value);
thresholds[THRESHOLD_SILENCE] = 256;
} else if (!value)
thresholds[THRESHOLD_SILENCE] = 256;