summaryrefslogtreecommitdiff
path: root/hald/linux/probing/probe-hiddev.c
diff options
context:
space:
mode:
Diffstat (limited to 'hald/linux/probing/probe-hiddev.c')
-rw-r--r--hald/linux/probing/probe-hiddev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hald/linux/probing/probe-hiddev.c b/hald/linux/probing/probe-hiddev.c
index 45d2084f..bffc040e 100644
--- a/hald/linux/probing/probe-hiddev.c
+++ b/hald/linux/probing/probe-hiddev.c
@@ -57,11 +57,12 @@ main (int argc, char *argv[])
/* assume failure */
ret = 1;
+ dbus_error_init (&error);
+
udi = getenv ("UDI");
if (udi == NULL)
goto out;
- dbus_error_init (&error);
if ((ctx = libhal_ctx_init_direct (&error)) == NULL)
goto out;