From e6f79b94891c3fe432739a479fde753002500938 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 8 Jul 2013 15:11:25 +0200 Subject: tevent: document tevent_req_create state zeroing Signed-off-by: David Disseldorp Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Mon Jul 8 20:43:49 CEST 2013 on sn-devel-104 --- lib/tevent/tevent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/tevent') diff --git a/lib/tevent/tevent.h b/lib/tevent/tevent.h index 6b4d371e4c..2bc4e2d7ad 100644 --- a/lib/tevent/tevent.h +++ b/lib/tevent/tevent.h @@ -919,9 +919,9 @@ bool _tevent_req_cancel(struct tevent_req *req, const char *location); * req = tevent_req_create(mem_ctx, &state, struct computation_state); * @endcode * - * Tevent_req_create() creates the state variable as a talloc child of - * its result. The state variable should be used as the talloc parent - * for all temporary variables that are allocated during the async + * Tevent_req_create() allocates and zeros the state variable as a talloc + * child of its result. The state variable should be used as the talloc + * parent for all temporary variables that are allocated during the async * computation. This way, when the user of the async computation frees * the request, the state as a talloc child will be free'd along with * all the temporary variables hanging off the state. -- cgit