From: Tilghman Lesher Date: Thu, 7 May 2009 17:52:01 +0000 (+0000) Subject: Merged revisions 193006 via svnmerge from X-Git-Tag: 1.6.1.3-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=245f56ed841ef36e4b463b25884844fd1e0b96c0;p=thirdparty%2Fasterisk.git Merged revisions 193006 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r193006 | tilghman | 2009-05-07 12:51:13 -0500 (Thu, 07 May 2009) | 7 lines Second result should not contain data from the first result. (closes issue #15039) Reported by: jims Patches: 20090506__issue15039.diff.txt uploaded by tilghman (license 14) Tested by: jims ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@193007 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index cc344be41e..e093ecffc1 100644 --- a/funcs/func_odbc.c +++ b/funcs/func_odbc.c @@ -391,6 +391,7 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha } for (y = 0; y < rowlimit; y++) { + buf[0] = '\0'; for (x = 0; x < colcount; x++) { int i; struct ast_str *coldata = ast_str_thread_get(&coldata_buf, 16);