openvz: fix bridge devices parsing in openvzReadNetworkConf()

strchrnul() was called on the wrong string so it returned
the same result for each iteration.
This commit is contained in:
Jean-Baptiste Rouault 2011-05-31 11:57:21 +02:00 committed by Matthias Bolte
parent 7cbbf61bd4
commit 0796395283
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ openvzReadNetworkConf(virDomainDefPtr def,
/*parse string*/
do {
char *next = strchrnul (token, ',');
char *next = strchrnul (p, ',');
if (STRPREFIX(p, "ifname=")) {
/* skip in libvirt */
} else if (STRPREFIX(p, "host_ifname=")) {