From 14fb68d9c0aa7a19fd1424b4b2bc84af1caab594 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Mon, 5 Jan 2009 22:09:22 +0100 Subject: [PATCH] Apply plugin pattern only if specified --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index 716eb7c..2103b66 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -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); -- 2.7.4