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:
Eric Blake 2011-06-28 12:17:00 -06:00
parent c65fcce8ed
commit cf2affffcc

View File

@ -2520,7 +2520,7 @@ remoteAuthSASL (virConnectPtr conn, struct private_data *priv,
int ret = -1;
const char *mechlist;
virNetSASLContextPtr saslCtxt;
virNetSASLSessionPtr sasl;
virNetSASLSessionPtr sasl = NULL;
VIR_DEBUG("Client initialize SASL authentication");