updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-terminal-gtk2 / exitcode.patch
blobded5e6dc05ba71abe3a42fb05392b57a2470d8e3
1 From 6eb49392fad8c76ade38fbd712509f0daa419a06 Mon Sep 17 00:00:00 2001
2 From: Jan de Groot <jan@jgc.homeip.net>
3 Date: Thu, 31 Mar 2011 12:27:37 +0200
4 Subject: [PATCH] Initialize exit status with EXIT_SUCCESS instead of -1. When things go wrong, the exit status is set to something else anyways. Fixes bug #646317
6 ---
7 src/terminal.c | 2 +-
8 1 files changed, 1 insertions(+), 1 deletions(-)
10 diff --git a/src/terminal.c b/src/terminal.c
11 index 202b850..06de533 100644
12 --- a/src/terminal.c
13 +++ b/src/terminal.c
14 @@ -579,7 +579,7 @@ main (int argc, char **argv)
15 data = g_new (OwnData, 1);
16 data->factory_name = get_factory_name_for_display (display_name);
17 data->options = options;
18 - data->exit_code = -1;
19 + data->exit_code = EXIT_SUCCESS;
20 data->argv = argv_copy;
21 data->argc = argc_copy;
23 --
24 1.7.4.2