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
This commit is contained in:
Daniel P. Berrange 2011-10-19 09:44:08 +01:00
parent 58d26a8ee9
commit c005e523b2

View File

@ -520,7 +520,7 @@ virBufferEscapeShell(virBufferPtr buf, const char *str)
return;
}
} else {
virBufferAdd(buf, "''", 2);
virBufferAddLit(buf, "''");
return;
}