diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-11-08 01:55:31 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-11-08 01:55:31 +0000 |
commit | a0a97696160c209413f213208b906d2990650320 (patch) | |
tree | ce21ec4bfdeea79845fbbf2eb5308a2e6d513fc8 /res/res_config_odbc.c | |
parent | 2ea48ce114efcce674220ef6cbb1cd61f3e79494 (diff) |
issue #5648
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_config_odbc.c')
-rwxr-xr-x | res/res_config_odbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index 10b3dab9f..bd19c6301 100755 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -168,7 +168,7 @@ static struct ast_variable *realtime_odbc(const char *database, const char *tabl stringp = rowdata; 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(coltitle, chunk); if (prev->next) @@ -320,7 +320,7 @@ static struct ast_config *realtime_multi_odbc(const char *database, const char * stringp = rowdata; while(stringp) { chunk = strsep(&stringp, ";"); - if (chunk && !ast_strlen_zero(ast_strip(chunk))) { + if (!ast_strlen_zero(ast_strip(chunk))) { if (initfield && !strcmp(initfield, coltitle)) ast_category_rename(cat, chunk); var = ast_variable_new(coltitle, chunk); |