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
}
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) {
}
}
}
+ }
free(fieldnames);
} else {
ast_log(LOG_WARNING, "Postgresql RealTime: Could not find any rows in table %s.\n", table);