]> xenbits.xensource.com Git - libvirt.git/commitdiff
Replace virBufferAdd with virBufferAddLit for const string
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Oct 2011 08:44:08 +0000 (09:44 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Oct 2011 08:45:09 +0000 (09:45 +0100)
The statement

        virBufferAdd(buf, "''", 2);

triggers a syntax-check warning

* src/util/buf.c: Replace virBufferAdd with virBufferAddLit

src/util/buf.c

index b7fcf6d603ad8cea631eaa5c50df042c11c36444..5893e1199fa576e3eb6f5cd435d6917d9992d40d 100644 (file)
@@ -520,7 +520,7 @@ virBufferEscapeShell(virBufferPtr buf, const char *str)
             return;
         }
     } else {
-        virBufferAdd(buf, "''", 2);
+        virBufferAddLit(buf, "''");
         return;
     }