mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
remote_driver: Drop explicit memset(&sargs) in remoteAuthSASL()
Inside of remoteAuthSASL() the sargs variable is already initialized to zero during declaration. There's no need to memset() it again as it's unused in between it's declaration and said memset(). Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Claudio Fontana <cfontana@suse.de>
This commit is contained in:
parent
5aba198687
commit
258fc73cf0
@ -3833,7 +3833,6 @@ remoteAuthSASL(virConnectPtr conn, struct private_data *priv,
|
||||
goto cleanup;
|
||||
}
|
||||
/* NB, distinction of NULL vs "" is *critical* in SASL */
|
||||
memset(&sargs, 0, sizeof(sargs));
|
||||
sargs.nil = clientout ? 0 : 1;
|
||||
sargs.data.data_val = (char*)clientout;
|
||||
sargs.data.data_len = clientoutlen;
|
||||
|
Loading…
Reference in New Issue
Block a user