mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-30 21:47:18 +00: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) {
|
if (net->hostnet_name) {
|
||||||
virBufferVSprintf(&buf, "%cname=%s", type_sep,
|
virBufferVSprintf(&buf, "%cname=%s", type_sep,
|
||||||
net->hostnet_name);
|
net->hostnet_name);
|
||||||
type_sep = ',';
|
type_sep = ','; /* dead-store, but leave it, in case... */
|
||||||
}
|
}
|
||||||
if (virBufferError(&buf)) {
|
if (virBufferError(&buf)) {
|
||||||
virReportOOMError(conn);
|
virReportOOMError(conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user