From 61e241a5d1428dc86c96127b30fdf179e5bf5c84 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Wed, 8 Apr 2009 17:08:43 +0000 Subject: 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 --- funcs/func_odbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'funcs/func_odbc.c') 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++] = ','; } -- cgit v1.2.3