summaryrefslogtreecommitdiff
path: root/funcs/func_odbc.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-04-08 17:08:43 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-04-08 17:08:43 +0000
commit61e241a5d1428dc86c96127b30fdf179e5bf5c84 (patch)
tree4f19ec9a6b0ebea0021811922afd970c3186badb /funcs/func_odbc.c
parentda786078f307e8e006ac19ce12b03469181ee65c (diff)
If the first column is empty, output a delimiter anyway.
(closes issue #14848) Reported by: john8675309 Patches: 20090408__bug14848.diff.txt uploaded by tilghman (license 14) Tested by: john8675309 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@187050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_odbc.c')
-rw-r--r--funcs/func_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index fb733a421..385144e86 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -585,7 +585,7 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha
ast_debug(2, "Got coldata of '%s'\n", ast_str_buffer(coldata));
- if (buflen) {
+ if (x) {
buf[buflen++] = ',';
}