summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2010-09-20 14:27:06 -0500
committerDan Williams <dcbw@redhat.com>2010-09-20 14:27:52 -0500
commit8131a987fa45cc00dddbc9f8b5bd342b04d8801c (patch)
tree6e7bf9c82a59591ba5cc9b001021b5b16c20d889 /src
parente724a3ab56ef6a673d710515d79a412af68d283a (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/system-settings/nm-sysconfig-settings.c2
1 files changed, 1 insertions, 1 deletions
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);