]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Revert "res_config_odbc: Preserve empty strings returned by the database"
authorSean Bright <sean.bright@gmail.com>
Mon, 6 Apr 2020 14:29:13 +0000 (09:29 -0500)
committerJoshua Colp <jcolp@sangoma.com>
Wed, 8 Apr 2020 13:32:58 +0000 (08:32 -0500)
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

res/res_config_odbc.c

index 45bb2141d7295c9990f70cef0254d5d12c770cff..fd0078f22a5391b6042cfa7ee5451b3f7e59ce0d 100644 (file)
@@ -303,7 +303,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);
                                        }