ensure buffer is initialized (issue #7512, klaus3000)

git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.2@360 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Russell Bryant
2006-07-12 19:08:31 +00:00
parent 3963b924b2
commit 0dcd4a1c1e

2
q931.c
View File

@@ -1398,7 +1398,7 @@ static FUNC_DUMP(dump_display)
{
int x, y;
char *buf = malloc(len + 1);
char tmp[80];
char tmp[80] = "";
if (buf) {
x=y=0;
if ((x < ie->len) && (ie->data[x] & 0x80)) {