diff options
author | Colin Walters <walters@verbum.org> | 2012-01-17 10:24:39 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-01-17 10:24:39 -0500 |
commit | 626c08a847407e3aff6fd88a5b50db0643252080 (patch) | |
tree | c9fccf754833046a20b6d160182e278f6c643590 /tests/visuals | |
parent | dba9c2e5a763fc67457accb4da2681a43658df35 (diff) | |
download | gtk+-626c08a847407e3aff6fd88a5b50db0643252080.tar.gz |
tests/visuals: Squash a compiler warning
Diffstat (limited to 'tests/visuals')
-rw-r--r-- | tests/visuals/visuals.c | 5 |
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); |