diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-12-24 17:59:23 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-12-24 17:59:23 +0000 |
commit | 2f79916fa88d48c920155a4117e8ad46785da74c (patch) | |
tree | 999af032a55935d00dcab313ed98f217f34e4835 /addons/res_config_mysql.c | |
parent | da854784c6efb579a62355a942c60bf7868756d3 (diff) |
Merged revisions 299583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r299583 | tilghman | 2010-12-24 11:58:30 -0600 (Fri, 24 Dec 2010) | 7 lines
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: https://origsvn.digium.com/svn/asterisk/trunk@299584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons/res_config_mysql.c')
-rw-r--r-- | addons/res_config_mysql.c | 1 |
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) { |