mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-02 22:47:39 +00:00
Don't check for NULL when it never can happen
This commit is contained in:
parent
6ab5444c81
commit
dc3db6302e
@ -117,7 +117,7 @@ virt_viewer_util_extract_host(const char *uristr,
|
||||
g_return_val_if_fail(uri != NULL, 1);
|
||||
|
||||
if (host) {
|
||||
if (!uri || !uri->server) {
|
||||
if (!uri->server) {
|
||||
*host = g_strdup("localhost");
|
||||
} else {
|
||||
if (uri->server[0] == '[') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user