aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_odbc.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-07 17:51:13 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-07 17:51:13 +0000
commitad0a92b9a45d0246d41094897d881cb1cbc40cb5 (patch)
tree4abf6b85e3aec003a0160ebf0074e836fedc1344 /funcs/func_odbc.c
parent70a3760913862fa86bf9a56ab97f6c91bd21bd61 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@193006 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'funcs/func_odbc.c')
-rw-r--r--funcs/func_odbc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c
index b754d3b7f..4bfe1a23d 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);