[asterisk-commits] qwell: trunk r68449 -
/trunk/res/res_config_sqlite.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jun 8 08:51:54 MST 2007
Author: qwell
Date: Fri Jun 8 10:51:53 2007
New Revision: 68449
URL: http://svn.digium.com/view/asterisk?view=rev&rev=68449
Log:
Fix incorrect logic for param count.
Issue 9918.
Modified:
trunk/res/res_config_sqlite.c
Modified: trunk/res/res_config_sqlite.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_config_sqlite.c?view=diff&rev=68449&r1=68448&r2=68449
==============================================================================
--- trunk/res/res_config_sqlite.c (original)
+++ trunk/res/res_config_sqlite.c Fri Jun 8 10:51:53 2007
@@ -804,12 +804,11 @@
params_count++;
}
- if (params_count)
- ast_log(LOG_WARNING, "1 parameter and 1 value at least required\n");
- else {
+ if (params_count > 0) {
*params_ptr = params;
*vals_ptr = vals;
- }
+ } else
+ ast_log(LOG_WARNING, "1 parameter and 1 value at least required\n");
return params_count;
}
More information about the asterisk-commits
mailing list