summaryrefslogtreecommitdiff
path: root/hald/linux/probing/probe-video4linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'hald/linux/probing/probe-video4linux.c')
-rw-r--r--hald/linux/probing/probe-video4linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hald/linux/probing/probe-video4linux.c b/hald/linux/probing/probe-video4linux.c
index cf913c0f..7bc13e84 100644
--- a/hald/linux/probing/probe-video4linux.c
+++ b/hald/linux/probing/probe-video4linux.c
@@ -58,6 +58,8 @@ main (int argc, char *argv[])
setup_logger ();
+ dbus_error_init (&error);
+
device_file = getenv ("HAL_PROP_VIDEO4LINUX_DEVICE");
if (device_file == NULL)
goto out;
@@ -66,7 +68,6 @@ main (int argc, char *argv[])
if (udi == NULL)
goto out;
- dbus_error_init (&error);
ctx = libhal_ctx_init_direct (&error);
if (ctx == NULL)
goto out;