summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-06-03 11:59:20 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2016-06-03 11:59:20 +0200
commitb1924292b42a5084c5269cda908601495be2451f (patch)
tree97a60bd58ae56e8365ff9d24cad0ddb1d6aae645
parent2b078db1471e24d0182fa63fedb5fba9ec744e7d (diff)
downloadlibuca-b1924292b42a5084c5269cda908601495be2451f.tar.gz
libuca-b1924292b42a5084c5269cda908601495be2451f.tar.bz2
libuca-b1924292b42a5084c5269cda908601495be2451f.tar.xz
libuca-b1924292b42a5084c5269cda908601495be2451f.zip
info: do not list property if name not given
-rw-r--r--bin/tools/info.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tools/info.c b/bin/tools/info.c
index b2ac0c8..42e73f0 100644
--- a/bin/tools/info.c
+++ b/bin/tools/info.c
@@ -100,8 +100,8 @@ int main(int argc, char *argv[])
manager = uca_plugin_manager_new ();
if (argc < 2) {
- name = g_strdup ("Basic camera");
- camera = g_object_new (UCA_TYPE_CAMERA, NULL);
+ print_usage();
+ return 0;
}
else {
name = argv[1];