1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

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: Dmitry Guryanov <dguryanov@parallels.com>
This commit is contained in:
Dmitry Guryanov 2012-09-26 16:30:01 +04:00 committed by Eric Blake
parent 9ca569dedf
commit 2020a9f9c7

View File

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