diff options
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); |