If the first column is empty, output a delimiter anyway.
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 8 Apr 2009 17:08:43 +0000 (17:08 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 8 Apr 2009 17:08:43 +0000 (17:08 +0000)
(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

index fb733a4..385144e 100644 (file)
@@ -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++] = ',';
                        }