diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-04-26 11:37:04 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2016-04-26 11:37:04 +0200 |
commit | 9c2b5f2b5e8e402bb30ef85f0797e615380abfdc (patch) | |
tree | 58fa07bfd92795d8c557dcba703d88e4b75e663d /bin/tools/common.c | |
parent | 94b01a59597c4b00e7843213868124f1afd49930 (diff) | |
download | uca-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/tools/common.c')
-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++) { |