All pastes #1929628 Raw Edit

Anonymous

public text v1 · immutable
#1929628 ·published 2010-08-31 02:32 UTC
rendered paste body
Index: webcamd_hal.c
===================================================================
--- webcamd_hal.c	(revision 1628)
+++ webcamd_hal.c	(working copy)
@@ -69,6 +69,8 @@
 	char **ppdev;
 	int n;
 
+	if (!(hal_conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL)))
+		return;
 	hal_ctx = libhal_ctx_new();
 	if (hal_ctx == NULL)
 		return;