mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Continuation of issue 9968 (revision 69081). This should be the last one.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69108 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -180,7 +180,7 @@ static struct ast_variable *realtime_pgsql(const char *database, const char *tab
|
|||||||
stringp = PQgetvalue(result, rowIndex, i);
|
stringp = PQgetvalue(result, rowIndex, i);
|
||||||
while (stringp) {
|
while (stringp) {
|
||||||
chunk = strsep(&stringp, ";");
|
chunk = strsep(&stringp, ";");
|
||||||
if (chunk && !ast_strlen_zero(ast_strip(chunk))) {
|
if (!ast_strlen_zero(ast_strip(chunk))) {
|
||||||
if (prev) {
|
if (prev) {
|
||||||
prev->next = ast_variable_new(fieldnames[i], chunk);
|
prev->next = ast_variable_new(fieldnames[i], chunk);
|
||||||
if (prev->next) {
|
if (prev->next) {
|
||||||
@@ -336,7 +336,7 @@ static struct ast_config *realtime_multi_pgsql(const char *database, const char
|
|||||||
stringp = PQgetvalue(result, rowIndex, i);
|
stringp = PQgetvalue(result, rowIndex, i);
|
||||||
while (stringp) {
|
while (stringp) {
|
||||||
chunk = strsep(&stringp, ";");
|
chunk = strsep(&stringp, ";");
|
||||||
if (chunk && !ast_strlen_zero(ast_strip(chunk))) {
|
if (!ast_strlen_zero(ast_strip(chunk))) {
|
||||||
if (initfield && !strcmp(initfield, fieldnames[i])) {
|
if (initfield && !strcmp(initfield, fieldnames[i])) {
|
||||||
ast_category_rename(cat, chunk);
|
ast_category_rename(cat, chunk);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user