diff options
-rw-r--r-- | bin/tools/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |