--- addons/res/res_config_mysql.c | 1 + 1 file changed, 1 insertion(+) Index: b/addons/res/res_config_mysql.c =================================================================== --- a/addons/res/res_config_mysql.c +++ b/addons/res/res_config_mysql.c @@ -753,6 +753,7 @@ static int update2_mysql(const char *dat 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) {