From 6ce67eca016d5e912a3c92f5494892efa08f0722 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 23 May 2013 21:32:32 +0900 Subject: [PATCH] ensure pa autho info is 0'd out so valgrind doesnt complain about reading uninitialized data. --- src/modules/mixer/pa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/mixer/pa.c b/src/modules/mixer/pa.c index f34316aaf..af509c624 100644 --- a/src/modules/mixer/pa.c +++ b/src/modules/mixer/pa.c @@ -154,7 +154,7 @@ login_setup(Pulse *conn) tag = calloc(1, sizeof(Pulse_Tag)); tag->dsize = 4 * PA_TAG_SIZE_U32 + sizeof(cookie); - tag->data = malloc(tag->dsize); + tag->data = calloc(1, tag->dsize); tag_simple_init(conn, tag, PA_COMMAND_AUTH, PA_TAG_U32); DBG("%zu bytes", tag->dsize);