diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-15 03:13:31 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-15 03:13:31 (EDT) |
commit | 87260f8cf7827dc8d07da9054024e36aaa1dbc53 (patch) | |
tree | 06ae3c60995495f43334c61edc53c7625490a2e6 /src | |
parent | 9044cf4c25d63873c50218cc4c5b4c19a057c545 (diff) | |
download | marquee-87260f8cf7827dc8d07da9054024e36aaa1dbc53.zip marquee-87260f8cf7827dc8d07da9054024e36aaa1dbc53.tar.gz marquee-87260f8cf7827dc8d07da9054024e36aaa1dbc53.tar.bz2 |
main(): Return on GTK+ init error and --version
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |