]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu_conf.c: add a comment suggesting why we leave a dead-store
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 09:20:23 +0000 (11:20 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 16:59:29 +0000 (18:59 +0200)
* 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.

src/qemu_conf.c

index c6b4184ab0eb6edecc702ea00a2e20b2608f2ee4..caf518c1ce88aa592b581771dc354858c085be62 100644 (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);