From: Joshua Colp Date: Wed, 5 Mar 2008 16:39:22 +0000 (+0000) Subject: Fix code up to what it was meant to be. X-Git-Tag: 1.6.0-beta7~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=455f6137b49143bfc233cf4237e0125ed6c28fe4;p=thirdparty%2Fasterisk.git Fix code up to what it was meant to be. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@106110 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/dsp.c b/main/dsp.c index a9a787459a..e2de31af41 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;