[asterisk-addons-commits] tilghman: branch 1.6.2 r1138 -	/branches/1.6.2/res/res_config_mysql.c
    SVN commits to the Asterisk addons project 
    asterisk-addons-commits at lists.digium.com
       
    Fri Dec 24 17:56:44 UTC 2010
    
    
  
Author: tilghman
Date: Fri Dec 24 11:56:36 2010
New Revision: 1138
URL: http://svnview.digium.com/svn/asterisk-addons?view=rev&rev=1138
Log:
Reset 'first' variable after first usage.
(closes issue #18525)
 Reported by: makoto
 Patches: 
       res-config-mysql-update2.patch uploaded by makoto (license 38)
Modified:
    branches/1.6.2/res/res_config_mysql.c
Modified: branches/1.6.2/res/res_config_mysql.c
URL: http://svnview.digium.com/svn/asterisk-addons/branches/1.6.2/res/res_config_mysql.c?view=diff&rev=1138&r1=1137&r2=1138
==============================================================================
--- branches/1.6.2/res/res_config_mysql.c (original)
+++ branches/1.6.2/res/res_config_mysql.c Fri Dec 24 11:56:36 2010
@@ -739,6 +739,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-addons-commits
mailing list