mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-26 14:35:18 +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;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
virBufferAdd(buf, "''", 2);
|
virBufferAddLit(buf, "''");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user