mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-08-24 17:49:22 +03:00
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 before88f6341
. The 'if (dom == NULL && err != NULL)' part was affected by commits824c4b9
,1eaaf8c
,15c7d17
so the check for 'err' is not needed anymore.
This commit is contained in:
committed by
Fabiano Fidêncio
parent
1a619f2383
commit
66afac53b6
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user