Closes issue ASTERISK-23675
Reported by Leando Dardini
Patches:
asterisk-23675-odbc-linkedlist-traversal_12.diff uploaded by Michael L. Young (license #5026)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@413282
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
}
snprintf(sql, sizeof(sql), "UPDATE %s SET ", table);
- while ((field = field->next)) {
+ while (field) {
if ((tableptr && (column = ast_odbc_find_column(tableptr, field->name))) || count >= 64) {
if (paramcount++) {
snprintf(sql + strlen(sql), sizeof(sql) - strlen(sql), ", ");