[libvirt] [PATCH] Replace virBufferAdd with virBufferAddLit for const string

19 Oct
2011
19 Oct
'11
4:45 a.m.
From: "Daniel P. Berrange" <berrange@redhat.com> The statement virBufferAdd(buf, "''", 2); triggers a syntax-check warning * src/util/buf.c: Replace virBufferAdd with virBufferAddLit --- src/util/buf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Pushed as a build-breaker fix diff --git a/src/util/buf.c b/src/util/buf.c index b7fcf6d..5893e11 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; } -- 1.7.6.4
5072
Age (days ago)
5072
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel P. Berrange