mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 05:17:59 +03: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");
|
||||
int ret = -1;
|
||||
char *outbuf;
|
||||
char *errbuf;
|
||||
char *errbuf = NULL;
|
||||
|
||||
virCommandSetOutputBuffer(cmd, &outbuf);
|
||||
if (outbuf != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user