From f2efb57947ddb45e412bdd26edafa000cd008b90 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 8 Apr 2009 17:13:21 +0000 Subject: [PATCH] Merged revisions 187050 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r187050 | tilghman | 2009-04-08 12:08:43 -0500 (Wed, 08 Apr 2009) | 7 lines 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/branches/1.6.2@187051 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- funcs/func_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index fb733a4214..385144e865 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++] = ','; }