Don't check for NULL when it never can happen

This commit is contained in:
Fabiano Fidêncio 2014-07-25 00:39:19 +02:00
parent 6ab5444c81
commit dc3db6302e

View File

@ -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] == '[') {