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.
This commit is contained in:
Dan Williams 2010-09-20 14:27:06 -05:00
parent cd5d904928
commit 14a358f604

View file

@ -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);