From b1924292b42a5084c5269cda908601495be2451f Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 3 Jun 2016 11:59:20 +0200 Subject: info: do not list property if name not given --- bin/tools/info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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]; -- cgit v1.2.3