summaryrefslogtreecommitdiff
path: root/lib/tevent
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@samba.org>2013-07-08 15:11:25 +0200
committerVolker Lendecke <vl@samba.org>2013-07-08 20:43:49 +0200
commite6f79b94891c3fe432739a479fde753002500938 (patch)
tree72e97516ec7301d3f33f07895e7cc40520f57c58 /lib/tevent
parente322420dc772859691336060bcb6cd20791c86ba (diff)
downloadsamba-e6f79b94891c3fe432739a479fde753002500938.tar.gz
samba-e6f79b94891c3fe432739a479fde753002500938.tar.bz2
samba-e6f79b94891c3fe432739a479fde753002500938.zip
tevent: document tevent_req_create state zeroing
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
Diffstat (limited to 'lib/tevent')
-rw-r--r--lib/tevent/tevent.h6
1 files changed, 3 insertions, 3 deletions
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.