From: Tilghman Lesher Date: Wed, 8 Apr 2009 17:08:43 +0000 (+0000) Subject: If the first column is empty, output a delimiter anyway. X-Git-Tag: 11.0.0-beta1~5101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61e241a5d1428dc86c96127b30fdf179e5bf5c84;p=thirdparty%2Fasterisk.git 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 --- 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++] = ','; }