From 9c2b5f2b5e8e402bb30ef85f0797e615380abfdc Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 26 Apr 2016 11:37:04 +0200 Subject: Fix assignment when no property is given --- bin/tools/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/tools/common.c b/bin/tools/common.c index 8de5e87..ee3c110 100644 --- a/bin/tools/common.c +++ b/bin/tools/common.c @@ -78,7 +78,7 @@ uca_common_get_camera (UcaPluginManager *manager, const gchar *name, GError **er GParameter *params; guint n_props; - n_props = g_strv_length (uca_prop_assignment_array); + n_props = uca_prop_assignment_array != NULL ? g_strv_length (uca_prop_assignment_array) : 0; params = g_new0 (GParameter, n_props); for (guint i = 0; i < n_props; i++) { -- cgit v1.2.3