summaryrefslogtreecommitdiffstats
path: root/test/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/control.c')
-rw-r--r--test/control.c2
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();
}