diff --git a/tests/commandtest.c b/tests/commandtest.c index fd2b8c0cfb..b5c5882c99 100644 --- a/tests/commandtest.c +++ b/tests/commandtest.c @@ -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) {