summaryrefslogtreecommitdiffstats
path: root/uca-net-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'uca-net-camera.c')
-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);