[asterisk-commits] tilghman: trunk r187050 - /trunk/funcs/func_odbc.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Apr 8 12:08:48 CDT 2009


Author: tilghman
Date: Wed Apr  8 12:08:43 2009
New Revision: 187050

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=187050
Log:
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

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/funcs/func_odbc.c?view=diff&rev=187050&r1=187049&r2=187050
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Wed Apr  8 12:08:43 2009
@@ -585,7 +585,7 @@
 
 			ast_debug(2, "Got coldata of '%s'\n", ast_str_buffer(coldata));
 
-			if (buflen) {
+			if (x) {
 				buf[buflen++] = ',';
 			}
 




More information about the asterisk-commits mailing list