summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-03-17 14:42:29 (GMT)
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-03-24 07:04:19 (GMT)
commit66afac53b6769f079d537cfa130f212286981c93 (patch)
tree6905ed953fc6da671d196fc65b4d6eeab49b26b1
parent1a619f23835abcc358b84bcead14171361907038 (diff)
downloadvirt-viewer-master.zip
virt-viewer-master.tar.gz
virt-viewer-master.tar.xz
virt-viewer: Clean up if no vm was chosenHEADmaster
It is safe to clean up when running virt-viewer without specifying vm name if no vm was chosen. It brings back behavior before 88f6341. The 'if (dom == NULL && err != NULL)' part was affected by commits 824c4b9, 1eaaf8c, 15c7d17 so the check for 'err' is not needed anymore.
-rw-r--r--src/virt-viewer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 49e8923..e83898b 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -732,7 +732,7 @@ virt_viewer_initial_connect(VirtViewerApp *app, GError **error)
&priv->domkey,
priv->conn,
&err);
- if (dom == NULL && err != NULL) {
+ if (dom == NULL) {
goto cleanup;
}
}