From: Tilghman Lesher Date: Thu, 7 May 2009 17:51:13 +0000 (+0000) Subject: Second result should not contain data from the first result. X-Git-Tag: 11.0.0-beta1~4921 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e346cbb9bc0bee95603abd4fd2c905093395c1d0;p=thirdparty%2Fasterisk.git 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 --- 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);