]> xenbits.xensource.com Git - libvirt.git/commitdiff
remote_driver: Drop explicit memset(&sargs) in remoteAuthSASL()
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Aug 2023 07:39:03 +0000 (09:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 3 Aug 2023 14:35:42 +0000 (16:35 +0200)
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>
src/remote/remote_driver.c

index d775f65fe2575b2cbae68c5cdac69c9cbee5a3a3..7ccf550dff14e2fc31713967794336299882922e 100644 (file)
@@ -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;