aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_config_pgsql.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-13 17:37:06 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-13 17:37:06 +0000
commitc00b437f55b931b87630fd09068d2709a1023d3d (patch)
tree529c950409042d55abc0d5e4d8eff452fb276774 /res/res_config_pgsql.c
parentf2942528daa0f477327d9d3fb51c43d1de942512 (diff)
Continuation of issue 9968 (revision 69081). This should be the last one.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69108 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_config_pgsql.c')
-rw-r--r--res/res_config_pgsql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index 5b2a7ad1c..20b2312c0 100644
--- a/res/res_config_pgsql.c
+++ b/res/res_config_pgsql.c
@@ -180,7 +180,7 @@ static struct ast_variable *realtime_pgsql(const char *database, const char *tab
stringp = PQgetvalue(result, rowIndex, i);
while (stringp) {
chunk = strsep(&stringp, ";");
- if (chunk && !ast_strlen_zero(ast_strip(chunk))) {
+ if (!ast_strlen_zero(ast_strip(chunk))) {
if (prev) {
prev->next = ast_variable_new(fieldnames[i], chunk);
if (prev->next) {
@@ -336,7 +336,7 @@ static struct ast_config *realtime_multi_pgsql(const char *database, const char
stringp = PQgetvalue(result, rowIndex, i);
while (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])) {
ast_category_rename(cat, chunk);
}