From 14a358f604afe0e73130a1c592c83af342d01fac Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 20 Sep 2010 14:27:06 -0500 Subject: [PATCH] core: be more robust to config file syntax issues Clearly we should be stripping spaces off plugin names if that's what the user happened to type. --- src/system-settings/nm-sysconfig-settings.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system-settings/nm-sysconfig-settings.c b/src/system-settings/nm-sysconfig-settings.c index a9bae14b1e..7f6a640e72 100644 --- a/src/system-settings/nm-sysconfig-settings.c +++ b/src/system-settings/nm-sysconfig-settings.c @@ -414,7 +414,7 @@ load_plugins (NMSysconfigSettings *self, const char *plugins, GError **error) for (iter = plist; *iter; iter++) { GModule *plugin; char *full_name, *path; - const char *pname = *iter; + const char *pname = g_strstrip (*iter); GObject *obj; GObject * (*factory_func) (void);