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:
Jim Meyering 2009-09-04 11:20:23 +02:00
parent 767c5bbe01
commit 1469bcf6c5

View File

@ -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);