mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
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:
parent
58d26a8ee9
commit
c005e523b2
@ -520,7 +520,7 @@ virBufferEscapeShell(virBufferPtr buf, const char *str)
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
virBufferAdd(buf, "''", 2);
|
||||
virBufferAddLit(buf, "''");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user