From 025dfc0c41367d5b29381e6ab26d3d58fe75d931 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 20 Apr 2012 11:00:32 +0200 Subject: Leave properties for later --- test/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/control.c b/test/control.c index a5a4e22..4990e5e 100644 --- a/test/control.c +++ b/test/control.c @@ -339,7 +339,7 @@ static void create_main_window(GtkBuilder *builder, const gchar* camera_name) GError *error = NULL; UcaCamera *camera = uca_camera_new(camera_name, &error); - if (error != NULL) { + if ((camera == NULL) || (error != NULL)) { g_error("%s\n", error->message); gtk_main_quit(); } -- cgit v1.2.3