diff options
author | Dan Williams <dcbw@redhat.com> | 2010-09-20 14:29:54 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-09-20 14:29:54 -0500 |
commit | fe3f7e36f90ecfb46b066901451dc4c010c970fc (patch) | |
tree | 0f47badfae2f778bd5b436c8ef06684b89575cd0 | |
parent | 3af9938d176c5d50f8d76a541323fd1497578018 (diff) | |
download | NetworkManager-fe3f7e36f90ecfb46b066901451dc4c010c970fc.tar.gz |
core: be more robust against config file syntax issues
Clearly we should be stripping spaces off plugin names, if that's how
the user typed it.
-rw-r--r-- | system-settings/src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system-settings/src/main.c b/system-settings/src/main.c index 2c4734d8cd..ea44afa306 100644 --- a/system-settings/src/main.c +++ b/system-settings/src/main.c @@ -130,7 +130,7 @@ load_plugins (Application *app, 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); |