From f25db8cc783c5f3a809f3ea72d0d4ba64d62b40a Mon Sep 17 00:00:00 2001
From: Jason Parker <jparker@digium.com>
Date: Wed, 13 Jun 2007 17:37:06 +0000
Subject: [PATCH] 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
---
 res/res_config_pgsql.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c
index 5b2a7ad1c2..20b2312c01 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);
 						}
-- 
GitLab