From: Sean Bright Date: Mon, 6 Apr 2020 14:29:13 +0000 (-0500) Subject: Revert "res_config_odbc: Preserve empty strings returned by the database" X-Git-Tag: 13.33.0-rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b92bd5783b2da4a0261814499607fff6265bc251;p=thirdparty%2Fasterisk.git Revert "res_config_odbc: Preserve empty strings returned by the database" This reverts commit a3a2fbaec685d931d56f669f2d4171220e9977ac. Reason for revert: There is a lot of code that relies on the broken behavior that this fixes. Change-Id: I410c395a0168acbdaf89e616e3cb5e1312d190cb --- diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index c3333831b9..ab76c31353 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -305,7 +305,7 @@ static struct ast_variable *realtime_odbc(const char *database, const char *tabl } else { while (stringp) { chunk = strsep(&stringp, ";"); - if (!strcmp(chunk, " ") || !ast_strlen_zero(ast_strip(chunk))) { + if (!ast_strlen_zero(ast_strip(chunk))) { if (strchr(chunk, '^')) { decode_chunk(chunk); }