remote: fix uninitialized variable
Detected by gcc -O2: remote/remote_driver.c: In function 'doRemoteOpen': remote/remote_driver.c:2753:26: error: 'sasl' may be used uninitialized in this function [-Werror=uninitialized] * src/remote/remote_driver.c (remoteAuthSASL): Initialize sasl.
This commit is contained in:
parent
c65fcce8ed
commit
cf2affffcc
@ -2520,7 +2520,7 @@ remoteAuthSASL (virConnectPtr conn, struct private_data *priv,
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
const char *mechlist;
|
const char *mechlist;
|
||||||
virNetSASLContextPtr saslCtxt;
|
virNetSASLContextPtr saslCtxt;
|
||||||
virNetSASLSessionPtr sasl;
|
virNetSASLSessionPtr sasl = NULL;
|
||||||
|
|
||||||
VIR_DEBUG("Client initialize SASL authentication");
|
VIR_DEBUG("Client initialize SASL authentication");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user