summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-04-10 01:51:47 +0000
committerRussell Bryant <russell@russellbryant.com>2006-04-10 01:51:47 +0000
commitd203e9c6c03a4ab34648582fb88256fc50768a96 (patch)
tree77944d35f1cef59a64cdb19acf7896f18a98bc00 /res
parente468d9011d1142eb88c7db55d68055c90ca08e67 (diff)
add back braces that were removed in a recent commit that leave a bunch of
nested statements in a block without branches, which is a violation of the coding guidelines. As a matter of fact, this module violates the coding guidelines in multiple ways that including formatting and code issues. In my opinion, this module should not have been merged into the trunk in this form. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r--res/res_config_pgsql.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index 114fcfb3f..8c4d63c33 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -159,7 +159,7 @@ static struct ast_variable *realtime_pgsql(const char *database, const char *tab
}
for(i = 0; i < numFields; i++)
fieldnames[i]=PQfname(result,i);
- for(rowIndex = 0; rowIndex < num_rows; rowIndex++)
+ for(rowIndex = 0; rowIndex < num_rows; rowIndex++) {
for(i = 0; i < numFields; i++) {
stringp = PQgetvalue(result,rowIndex,i);
while(stringp) {
@@ -176,6 +176,7 @@ static struct ast_variable *realtime_pgsql(const char *database, const char *tab
}
}
}
+ }
free(fieldnames);
} else {
ast_log(LOG_WARNING, "Postgresql RealTime: Could not find any rows in table %s.\n", table);