mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
Remove possible uninitialized variable in openvz driver
* src/openvz/openvz_driver.c: Initialize saveptr variable
This commit is contained in:
1 parent
9e3550dc4e
commit
222402417d
1 file changed
+1
-1
@@ -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