提交 3e850216 编写于 作者: J John Ferlan 提交者: Peter Krempa

commandtest: Need to initialize 'errbuf'

It was possible to call VIR_FREE in cleanup prior to initialization
上级 ac5cb26a
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册