Merge "res_config_odbc: Preserve empty strings returned by the database"
This commit is contained in:
commit
dda7f986d0
|
@ -303,7 +303,7 @@ static struct ast_variable *realtime_odbc(const char *database, const char *tabl
|
||||||
} else {
|
} else {
|
||||||
while (stringp) {
|
while (stringp) {
|
||||||
chunk = strsep(&stringp, ";");
|
chunk = strsep(&stringp, ";");
|
||||||
if (!ast_strlen_zero(ast_strip(chunk))) {
|
if (!strcmp(chunk, " ") || !ast_strlen_zero(ast_strip(chunk))) {
|
||||||
if (strchr(chunk, '^')) {
|
if (strchr(chunk, '^')) {
|
||||||
decode_chunk(chunk);
|
decode_chunk(chunk);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue