[asterisk-commits] tilghman: trunk r299584 - in /trunk: ./ addons/res_config_mysql.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Dec 24 17:59:27 UTC 2010
Author: tilghman
Date: Fri Dec 24 11:59:23 2010
New Revision: 299584
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=299584
Log:
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)
........
Modified:
trunk/ (props changed)
trunk/addons/res_config_mysql.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/addons/res_config_mysql.c
URL: http://svnview.digium.com/svn/asterisk/trunk/addons/res_config_mysql.c?view=diff&rev=299584&r1=299583&r2=299584
==============================================================================
--- trunk/addons/res_config_mysql.c (original)
+++ trunk/addons/res_config_mysql.c Fri Dec 24 11:59:23 2010
@@ -745,6 +745,7 @@
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) {
More information about the asterisk-commits
mailing list