summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-04-26 11:37:04 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-04-26 11:37:04 +0200
commit9c2b5f2b5e8e402bb30ef85f0797e615380abfdc (patch)
tree58fa07bfd92795d8c557dcba703d88e4b75e663d /bin
parent94b01a59597c4b00e7843213868124f1afd49930 (diff)
downloaduca-9c2b5f2b5e8e402bb30ef85f0797e615380abfdc.tar.gz
uca-9c2b5f2b5e8e402bb30ef85f0797e615380abfdc.tar.bz2
uca-9c2b5f2b5e8e402bb30ef85f0797e615380abfdc.tar.xz
uca-9c2b5f2b5e8e402bb30ef85f0797e615380abfdc.zip
Fix assignment when no property is given
Diffstat (limited to 'bin')
-rw-r--r--bin/tools/common.c2
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++) {