summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-15 03:13:31 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-15 03:13:31 (EDT)
commit87260f8cf7827dc8d07da9054024e36aaa1dbc53 (patch)
tree06ae3c60995495f43334c61edc53c7625490a2e6 /src/main.c
parent9044cf4c25d63873c50218cc4c5b4c19a057c545 (diff)
downloadmarquee-87260f8cf7827dc8d07da9054024e36aaa1dbc53.zip
marquee-87260f8cf7827dc8d07da9054024e36aaa1dbc53.tar.gz
marquee-87260f8cf7827dc8d07da9054024e36aaa1dbc53.tar.bz2
main(): Return on GTK+ init error and --version
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8b6562a..f22e39b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -55,6 +55,7 @@ main(int argc, char *argv[])
if (G_UNLIKELY(!gtk_init_with_args(&argc, &argv, "[URI]", entries, NULL,
&error))) {
g_print("%s: %s\n", PACKAGE, error->message);
+ return EXIT_FAILURE;
}
if (G_UNLIKELY(opt_version)) {
@@ -67,6 +68,7 @@ main(int argc, char *argv[])
"There is NO WARRANTY, to the extent permitted by "
"law.\n\n");
g_print("Please report bugs to <%s>.\n", PACKAGE_BUGREPORT);
+ return EXIT_SUCCESS;
}
return EXIT_SUCCESS;