mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Remove possible uninitialized variable in openvz driver
* src/openvz/openvz_driver.c: Initialize saveptr variable
This commit is contained in:
@@ -638,7 +638,7 @@ openvzGenerateContainerVethName(int veid)
|
||||
if (openvzReadVPSConfigParam(veid, "NETIF", &temp) <= 0) {
|
||||
name = strdup("eth0");
|
||||
} else {
|
||||
char *saveptr;
|
||||
char *saveptr = NULL;
|
||||
char *s;
|
||||
int max = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user