mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virnetclient: Update comment about memset()
Instead of suggesting to zero structs out using memset() we should suggest initializing structs with zero initializer. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Claudio Fontana <cfontana@suse.de>
This commit is contained in:
parent
3d7faaf712
commit
3b95df9eda
@ -1857,8 +1857,8 @@ static void virNetClientIOUpdateCallback(virNetClient *client,
|
||||
* which come from the user). It does however free any intermediate
|
||||
* results, eg. the error structure if there is one.
|
||||
*
|
||||
* NB(2). Make sure to memset (&ret, 0, sizeof(ret)) before calling,
|
||||
* else Bad Things will happen in the XDR code.
|
||||
* NB(2). Make sure to initialize ret variable to { 0 } before calling,
|
||||
* else Bad things will happen in the XDR code.
|
||||
*
|
||||
* NB(3) You must have the client lock before calling this
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user