From e346cbb9bc0bee95603abd4fd2c905093395c1d0 Mon Sep 17 00:00:00 2001
From: Tilghman Lesher <tilghman@meg.abyt.es>
Date: Thu, 7 May 2009 17:51:13 +0000
Subject: [PATCH] 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/trunk@193006 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 funcs/func_odbc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index b754d3b7f1..4bfe1a23d6 100644
--- a/funcs/func_odbc.c
+++ b/funcs/func_odbc.c
@@ -524,6 +524,7 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha
 	status = "SUCCESS";
 
 	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);
-- 
GitLab