mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 12:25:52 +00:00
commandtest: Need to initialize 'errbuf'
It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
parent
ac5cb26a32
commit
3e8502165f
@ -656,7 +656,7 @@ static int test17(const void *unused ATTRIBUTE_UNUSED)
|
|||||||
virCommandPtr cmd = virCommandNew("true");
|
virCommandPtr cmd = virCommandNew("true");
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
char *outbuf;
|
char *outbuf;
|
||||||
char *errbuf;
|
char *errbuf = NULL;
|
||||||
|
|
||||||
virCommandSetOutputBuffer(cmd, &outbuf);
|
virCommandSetOutputBuffer(cmd, &outbuf);
|
||||||
if (outbuf != NULL) {
|
if (outbuf != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user