mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
qemu_conf.c: add a comment suggesting why we leave a dead-store
* src/qemu_conf.c (qemuBuildHostNetStr): Do not remove the type_sep=',' dead store, since not having it would be a problem if we ever add a new attribute=VAL option.
This commit is contained in:
parent
767c5bbe01
commit
1469bcf6c5
@ -1272,7 +1272,7 @@ qemuBuildHostNetStr(virConnectPtr conn,
|
||||
if (net->hostnet_name) {
|
||||
virBufferVSprintf(&buf, "%cname=%s", type_sep,
|
||||
net->hostnet_name);
|
||||
type_sep = ',';
|
||||
type_sep = ','; /* dead-store, but leave it, in case... */
|
||||
}
|
||||
if (virBufferError(&buf)) {
|
||||
virReportOOMError(conn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user