mirror of https://gitee.com/openkylin/libvirt.git
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