diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/uca-plugin-manager.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uca-plugin-manager.c b/src/uca-plugin-manager.c index 704c398..3b62f68 100644 --- a/src/uca-plugin-manager.c +++ b/src/uca-plugin-manager.c @@ -281,7 +281,10 @@ transform_hash_entry_to_gparameter (gpointer key, { GParameter *parameter = &(params->p[params->idx]); - parameter->value = *((GValue*)value); + if (value) + parameter->value = *((GValue*)value); + else + g_value_set_gtype (&(parameter->value), G_TYPE_NONE); parameter->name = g_strdup ((const gchar*)key); params->idx++; } |