diff --git a/funcs/func_odbc.c b/funcs/func_odbc.c index b754d3b7f16a1f1957bfc8103c155d664325a4dd..4bfe1a23d64551e6de9b6b872ce137e3c7897f33 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);