tevent: document tevent_req_create state zeroing
authorDavid Disseldorp <ddiss@samba.org>
Mon, 8 Jul 2013 13:11:25 +0000 (15:11 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 8 Jul 2013 18:43:49 +0000 (20:43 +0200)
Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Jul  8 20:43:49 CEST 2013 on sn-devel-104

lib/tevent/tevent.h

index 6b4d371e4c5dae31307eaa2b6ea973cd7c148036..2bc4e2d7ad761fcbc5bc4854b97616a97683bd03 100644 (file)
@@ -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.