]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 193006 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 May 2009 17:52:01 +0000 (17:52 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 7 May 2009 17:52:01 +0000 (17:52 +0000)
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

funcs/func_odbc.c

index cc344be41e82f42dc0395c9974ebee0fb1e1204b..e093ecffc1181f57d5dd4b383086d072c6158959 100644 (file)
@@ -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);