]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Second result should not contain data from the first result.
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 May 2009 17:51:13 +0000 (17:51 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 May 2009 17:51:13 +0000 (17:51 +0000)
(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

index b754d3b7f16a1f1957bfc8103c155d664325a4dd..4bfe1a23d64551e6de9b6b872ce137e3c7897f33 100644 (file)
@@ -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);