mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
Fix an uninitialized variable in Unix socket open
* src/qemu_driver.c: qemudOpenMonitorUnix() had an uninitialized loop counter
This commit is contained in:
parent
7641c3c782
commit
b2fd033cd5
@ -874,7 +874,7 @@ qemudOpenMonitorUnix(virConnectPtr conn,
|
||||
struct sockaddr_un addr;
|
||||
int monfd;
|
||||
int timeout = 3; /* In seconds */
|
||||
int ret, i;
|
||||
int ret, i = 0;
|
||||
|
||||
if ((monfd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
|
||||
virReportSystemError(conn, errno,
|
||||
|
Loading…
Reference in New Issue
Block a user