From 813450e7fc1841f4a0ac5dc6a2f2187f46d57b04 Mon Sep 17 00:00:00 2001 From: Marcus Zuber Date: Mon, 30 Mar 2020 13:29:58 +0200 Subject: Fix host --- uca-net-camera.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'uca-net-camera.c') diff --git a/uca-net-camera.c b/uca-net-camera.c index c1ad5f0..f0b8cec 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -568,12 +568,10 @@ uca_net_camera_constructed (GObject *object) priv = UCA_NET_CAMERA_GET_PRIVATE (object); - if (priv->host == NULL) { - const gchar *env; + const gchar *env; - env = g_getenv ("UCA_NET_HOST"); - priv->host = env != NULL ? g_strdup (env) : g_strdup ("localhost"); - } + env = g_getenv ("UCA_NET_HOST"); + priv->host = env != NULL ? g_strdup (env) : g_strdup ("localhost"); connection = connect_socket (priv, &priv->construct_error); -- cgit v1.2.3