File: 09_check_hashtable_initialisation.patch

package info (click to toggle)
hal 0.5.8.1-9etch1
  • links: PTS, VCS
  • area: main
  • in suites: etch
  • size: 2,060 kB
  • ctags: 2
  • sloc: sh: 152; makefile: 27
file content (18 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/doc/api/.gitignore b/doc/api/.gitignore
diff --git a/doc/api/Makefile.am b/doc/api/Makefile.am
diff --git a/doc/api/hal-docs.xml b/doc/api/hal-docs.xml
diff --git a/hald/hald_dbus.c b/hald/hald_dbus.c
index 7a51bfb..741a52e 100644
--- a/hald/hald_dbus.c
+++ b/hald/hald_dbus.c
@@ -2902,7 +2902,8 @@ device_is_executing_method (HalDevice *d
 
 	ret = FALSE;
 
-	if (g_hash_table_lookup_extended (udi_to_method_queue, d->udi, &origkey, (gpointer) &queue)) {
+	if (udi_to_method_queue != NULL &&
+	    g_hash_table_lookup_extended (udi_to_method_queue, d->udi, &origkey, (gpointer) &queue)) {
 
 		if (queue != NULL) {
 			MethodInvocation *mi;
diff --git a/tools/hal-storage-shared.c b/tools/hal-storage-shared.c