Index: addons/res_config_mysql.c =================================================================== --- addons/res_config_mysql.c (revision 316919) +++ addons/res_config_mysql.c (working copy) @@ -324,7 +324,6 @@ int numFields, i; struct ast_str *sql = ast_str_thread_get(&sql_buf, 16); struct ast_str *buf = ast_str_thread_get(&scratch_buf, 16); - char *stringp; char *chunk; char *op; const char *newparam, *newval; @@ -398,7 +397,7 @@ } else if (ast_strlen_zero(row[i])) { row[i] = " "; } - for (stringp = ast_strdupa(row[i]), chunk = strsep(&stringp, ";"); chunk; chunk = strsep(&stringp, ";")) { + for (chunk = strsep(&row[i], ";"); chunk; chunk = strsep(&row[i], ";")) { if (prev) { if ((prev->next = ast_variable_new(fields[i].name, decode_chunk(chunk), ""))) { prev = prev->next; @@ -429,7 +428,6 @@ struct ast_str *sql = ast_str_thread_get(&sql_buf, 16); struct ast_str *buf = ast_str_thread_get(&scratch_buf, 16); const char *initfield = NULL; - char *stringp; char *chunk; char *op; const char *newparam, *newval; @@ -524,7 +522,7 @@ for (i = 0; i < numFields; i++) { if (ast_strlen_zero(row[i])) continue; - for (stringp = ast_strdupa(row[i]), chunk = strsep(&stringp, ";"); chunk; chunk = strsep(&stringp, ";")) { + for (chunk = strsep(&row[i], ";"); chunk; chunk = strsep(&row[i], ";")) { if (chunk && !ast_strlen_zero(decode_chunk(ast_strip(chunk)))) { if (initfield && !strcmp(initfield, fields[i].name)) { ast_category_rename(cat, chunk);