[svn-commits] file: trunk r106110 - /trunk/main/dsp.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 5 10:39:23 CST 2008


Author: file
Date: Wed Mar  5 10:39:22 2008
New Revision: 106110

URL: http://svn.digium.com/view/asterisk?view=rev&rev=106110
Log:
Fix code up to what it was meant to be.

Modified:
    trunk/main/dsp.c

Modified: trunk/main/dsp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/dsp.c?view=diff&rev=106110&r1=106109&r2=106110
==============================================================================
--- trunk/main/dsp.c (original)
+++ trunk/main/dsp.c Wed Mar  5 10:39:22 2008
@@ -1547,7 +1547,6 @@
 {
 	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 @@
 
 		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;




More information about the svn-commits mailing list