From: Daniel P. Berrange Date: Wed, 19 Oct 2011 08:44:08 +0000 (+0100) Subject: Replace virBufferAdd with virBufferAddLit for const string X-Git-Tag: v0.9.7-rc1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c005e523b2f4afe01062afccd3e1db626e9042b1;p=thirdparty%2Flibvirt.git Replace virBufferAdd with virBufferAddLit for const string The statement virBufferAdd(buf, "''", 2); triggers a syntax-check warning * src/util/buf.c: Replace virBufferAdd with virBufferAddLit --- diff --git a/src/util/buf.c b/src/util/buf.c index b7fcf6d603..5893e1199f 100644 --- a/src/util/buf.c +++ b/src/util/buf.c @@ -520,7 +520,7 @@ virBufferEscapeShell(virBufferPtr buf, const char *str) return; } } else { - virBufferAdd(buf, "''", 2); + virBufferAddLit(buf, "''"); return; }