commandtest: Need to initialize 'errbuf'

It was possible to call VIR_FREE in cleanup prior to initialization
This commit is contained in:
John Ferlan 2013-01-22 09:15:42 -05:00 committed by Peter Krempa
parent ac5cb26a32
commit 3e8502165f

View File

@ -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) {