summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-06-20 15:38:08 +0200
committerStefan Metzmacher <metze@samba.org>2018-07-12 14:25:18 +0200
commitc9f54db10911762298d1d4fe681d0aaf705f6f55 (patch)
treef88032f03ef9dcbdbadde236330dfecca275d65a /lib
parente45d33e92e47995faa7c523cf82dfb65efb190f8 (diff)
downloadsamba-c9f54db10911762298d1d4fe681d0aaf705f6f55.tar.gz
pthreadpool: use talloc_zero() in tests_cmocka.c setup_pthreadpool_tevent()
This was found with valgrind. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/pthreadpool/tests_cmocka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pthreadpool/tests_cmocka.c b/lib/pthreadpool/tests_cmocka.c
index 33952442e1d..d80b8c8f775 100644
--- a/lib/pthreadpool/tests_cmocka.c
+++ b/lib/pthreadpool/tests_cmocka.c
@@ -41,7 +41,7 @@ static int setup_pthreadpool_tevent(void **state)
struct pthreadpool_tevent_test *t;
int ret;
- t = talloc(NULL, struct pthreadpool_tevent_test);
+ t = talloc_zero(NULL, struct pthreadpool_tevent_test);
assert_non_null(t);
t->ev = tevent_context_init(t);