[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] use talloc_zero instead of talloc + memset
# HG changeset patch # User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx # Node ID 6afcef05125750af0e756bdcce226461aefd83c7 # Parent c70109e64c9e6d7f73c82e45047cecde783e76a5 use talloc_zero instead of talloc + memset Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx> diff -r c70109e64c9e -r 6afcef051257 tools/xenstore/xenstored_core.c --- a/tools/xenstore/xenstored_core.c Tue Jan 24 11:50:38 2006 +++ b/tools/xenstore/xenstored_core.c Tue Jan 24 12:03:06 2006 @@ -1301,11 +1301,10 @@ { struct connection *new; - new = talloc(talloc_autofree_context(), struct connection); + new = talloc_zero(talloc_autofree_context(), struct connection); if (!new) return NULL; - memset(new, 0, sizeof(*new)); new->fd = -1; new->write = write; new->read = read; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |