diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-04-20 11:00:32 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2012-04-20 11:00:32 +0200 |
commit | 025dfc0c41367d5b29381e6ab26d3d58fe75d931 (patch) | |
tree | 818390e2b089a63606f61f953df283690d185280 /test/control.c | |
parent | 1b019c9b661c4dc23fbba4af7659745570ec7473 (diff) | |
download | libuca-025dfc0c41367d5b29381e6ab26d3d58fe75d931.tar.gz libuca-025dfc0c41367d5b29381e6ab26d3d58fe75d931.tar.bz2 libuca-025dfc0c41367d5b29381e6ab26d3d58fe75d931.tar.xz libuca-025dfc0c41367d5b29381e6ab26d3d58fe75d931.zip |
Leave properties for later
Diffstat (limited to 'test/control.c')
-rw-r--r-- | test/control.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |