Move memset() from net_client_uninit() to net_client_init()
commitd2cffe303e3d0a40146c5edf672485cd804cef20
authorMark McLoughlin <markmc@redhat.com>
Tue, 6 Oct 2009 11:16:54 +0000 (6 12:16 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:10 +0000 (6 14:36 -0500)
tree13de88b49285d60a17d6f313b0e1fad3dead514e
parent9203f5202bf4bc7e4669ba19d3e6aac7761bd385
Move memset() from net_client_uninit() to net_client_init()

zeroing a structure before using it is more common than zeroing after
using it. Also makes the setting of nd->used more obvious.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c