提交 2020a9f9 编写于 作者: D Dmitry Guryanov 提交者: Eric Blake

parallels: remove unneded code from parallelsDoCmdRun

scmd was used for debugging and I forgot to remove it before
commit, so remove it now.
Signed-off-by: NDmitry Guryanov <dguryanov@parallels.com>
上级 9ca569de
......@@ -37,23 +37,17 @@ static int
parallelsDoCmdRun(char **outbuf, const char *binary, va_list list)
{
virCommandPtr cmd = virCommandNewVAList(binary, list);
char *scmd = NULL;
int ret = -1;
if (outbuf)
virCommandSetOutputBuffer(cmd, outbuf);
scmd = virCommandToString(cmd);
if (!scmd)
goto cleanup;
if (virCommandRun(cmd, NULL))
goto cleanup;
ret = 0;
cleanup:
VIR_FREE(scmd);
virCommandFree(cmd);
if (ret && outbuf)
VIR_FREE(*outbuf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册