Apply plugin pattern only if specified
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 21:09:22 +0000 (22:09 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 5 Jan 2009 21:09:22 +0000 (22:09 +0100)
src/plugin.c

index 716eb7c..2103b66 100644 (file)
@@ -97,7 +97,7 @@ int __connman_plugin_init(const char *pattern)
                                continue;
                        }
 
-                       if (g_pattern_match_simple(pattern,
+                       if (pattern != NULL && g_pattern_match_simple(pattern,
                                                        desc->name) == FALSE) {
                                DBG("ignoring %s", desc->description);
                                dlclose(handle);