[gtk+] tests/visuals: Squash a compiler warning
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests/visuals: Squash a compiler warning
- Date: Tue, 17 Jan 2012 15:25:24 +0000 (UTC)
commit 626c08a847407e3aff6fd88a5b50db0643252080
Author: Colin Walters <walters verbum org>
Date: Tue Jan 17 10:24:39 2012 -0500
tests/visuals: Squash a compiler warning
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 df65b59..0a6caa3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]