summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer.c
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-03-17 15:42:29 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-03-24 08:04:19 +0100
commit66afac53b6769f079d537cfa130f212286981c93 (patch)
tree6905ed953fc6da671d196fc65b4d6eeab49b26b1 /src/virt-viewer.c
parent1a619f23835abcc358b84bcead14171361907038 (diff)
downloadvirt-viewer-66afac53b6769f079d537cfa130f212286981c93.tar.gz
virt-viewer-66afac53b6769f079d537cfa130f212286981c93.tar.xz
virt-viewer-66afac53b6769f079d537cfa130f212286981c93.zip
virt-viewer: Clean up if no vm was chosen
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.
Diffstat (limited to 'src/virt-viewer.c')
-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;
}
}