raster pushed a commit to branch master.
commit 6ce67eca016d5e912a3c92f5494892efa08f0722
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Thu May 23 21:32:32 2013 +0900
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 f34316a..af509c6 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);
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may