aboutsummaryrefslogtreecommitdiffstats
path: root/addons
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-24 17:58:30 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-12-24 17:58:30 +0000
commit9f7d87ac5ad457382610effe0acfb73990d82251 (patch)
tree3544bffb9ce4743ebdcf3e6f24d178c9ee029bb7 /addons
parent2831b25c5bc0ccf56121662b2cfc79ac20342d6d (diff)
Reset 'first' variable after usage.
(closes issue #18525) Reported by: makoto Patches: res-config-mysql-update2.patch uploaded by makoto (license 38) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@299583 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'addons')
-rw-r--r--addons/res_config_mysql.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/res_config_mysql.c b/addons/res_config_mysql.c
index a626ffd3e..93a743245 100644
--- a/addons/res_config_mysql.c
+++ b/addons/res_config_mysql.c
@@ -745,6 +745,7 @@ static int update2_mysql(const char *database, const char *tablename, va_list ap
ESCAPE_STRING(buf, newval);
ast_str_append(&sql, 0, "%s %s = '%s'", first ? "" : ",", newparam, ast_str_buffer(buf));
+ first = 0;
/* If the column length isn't long enough, give a chance to lengthen it. */
if (strncmp(column->type, "char", 4) == 0 || strncmp(column->type, "varchar", 7) == 0) {