diff options
author | Marcus Zuber <marcus.zuber@kit.edu> | 2020-03-30 13:29:58 +0200 |
---|---|---|
committer | Marcus Zuber <marcus.zuber@kit.edu> | 2020-03-30 13:29:58 +0200 |
commit | 813450e7fc1841f4a0ac5dc6a2f2187f46d57b04 (patch) | |
tree | 981e85b2c409fab24c7ac5132e87ea44461bed9a | |
parent | 2c98501d16f12dc260863f950cb1492a309eb505 (diff) | |
download | uca-net-813450e7fc1841f4a0ac5dc6a2f2187f46d57b04.tar.gz uca-net-813450e7fc1841f4a0ac5dc6a2f2187f46d57b04.tar.bz2 uca-net-813450e7fc1841f4a0ac5dc6a2f2187f46d57b04.tar.xz uca-net-813450e7fc1841f4a0ac5dc6a2f2187f46d57b04.zip |
Fix host
-rw-r--r-- | uca-net-camera.c | 8 |
1 files changed, 3 insertions, 5 deletions
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); |