summaryrefslogtreecommitdiff
path: root/tests/visuals
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-01-17 10:24:39 -0500
committerColin Walters <walters@verbum.org>2012-01-17 10:24:39 -0500
commit626c08a847407e3aff6fd88a5b50db0643252080 (patch)
treec9fccf754833046a20b6d160182e278f6c643590 /tests/visuals
parentdba9c2e5a763fc67457accb4da2681a43658df35 (diff)
downloadgtk+-626c08a847407e3aff6fd88a5b50db0643252080.tar.gz
tests/visuals: Squash a compiler warning
Diffstat (limited to 'tests/visuals')
-rw-r--r--tests/visuals/visuals.c5
1 files changed, 3 insertions, 2 deletions
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);