mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
openvz_conf.c: don't use undefined local, "net"
* src/openvz_conf.c (openvzReadNetworkConf): Initialize "net". Otherwise, upon openvzRead... failure, we would "goto error;" where an uninitialized "net" could be dereferenced.
This commit is contained in:
parent
20f1f714ba
commit
1e813ceb3e
@ -183,7 +183,7 @@ openvzReadNetworkConf(virConnectPtr conn,
|
||||
virDomainDefPtr def,
|
||||
int veid) {
|
||||
int ret;
|
||||
virDomainNetDefPtr net;
|
||||
virDomainNetDefPtr net = NULL;
|
||||
char temp[4096];
|
||||
char *token, *saveptr = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user