diff --git a/tests/visuals/visuals.c b/tests/visuals/visuals.c index df65b5960f..0a6caa3b99 100644 --- a/tests/visuals/visuals.c +++ b/tests/visuals/visuals.c @@ -66,8 +66,9 @@ main (int argc, char *argv[]) gtk_init (&argc, &argv); - if (argc > 1) - filename = argv[1]; + if (argc < 2) + return 1; + filename = argv[1]; builder = gtk_builder_new (); gtk_builder_add_from_file (builder, filename, NULL);