diff options
author | Jeremy Allison <jra@samba.org> | 2009-07-14 16:54:01 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-07-14 16:54:01 -0700 |
commit | 5927ca7067a0ead65c00042a62545b0d940f2b2a (patch) | |
tree | 991835b9faef3862fc23720464e50b3b2ee0b066 /lib/tevent | |
parent | 7be1d727a31b34debbcf8faa1e0bea911112d145 (diff) | |
download | samba-5927ca7067a0ead65c00042a62545b0d940f2b2a.tar.gz samba-5927ca7067a0ead65c00042a62545b0d940f2b2a.tar.bz2 samba-5927ca7067a0ead65c00042a62545b0d940f2b2a.zip |
Change to talloc_zero_size instead of extra memset.
Jeremy.
Diffstat (limited to 'lib/tevent')
-rw-r--r-- | lib/tevent/tevent_req.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tevent/tevent_req.c b/lib/tevent/tevent_req.c index 1ddf9ef155..0feabb5f1f 100644 --- a/lib/tevent/tevent_req.c +++ b/lib/tevent/tevent_req.c @@ -104,12 +104,11 @@ struct tevent_req *_tevent_req_create(TALLOC_CTX *mem_ctx, return NULL; } - data = talloc_size(req, data_size); + data = talloc_zero_size(req, data_size); if (data == NULL) { talloc_free(req); return NULL; } - memset(data, '\0', data_size); talloc_set_name_const(data, type); req->data = data; |