summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Zuber <marcus.zuber@kit.edu>2020-03-30 13:29:58 +0200
committerMarcus Zuber <marcus.zuber@kit.edu>2020-03-30 13:29:58 +0200
commit813450e7fc1841f4a0ac5dc6a2f2187f46d57b04 (patch)
tree981e85b2c409fab24c7ac5132e87ea44461bed9a
parent2c98501d16f12dc260863f950cb1492a309eb505 (diff)
downloaduca-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.c8
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);