~ubuntu-branches/ubuntu/trusty/rxvt-unicode/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/04_graceful_exit.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2004-05-11 09:11:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040511091142-l3sj8vkfjp8aaljo
Tags: 3.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 06_dautipps.dpatch by Eduard Bloch <blade@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Build fixes for 1.9
 
6
 
 
7
if [ $# -ne 1 ]; then
 
8
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
9
    exit 1
 
10
fi
 
11
case "$1" in
 
12
       -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
 
13
       -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
 
14
        *)
 
15
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
16
                exit 1;;
 
17
esac
 
18
 
 
19
exit 0
 
20
                                    
 
21
@DPATCH@
 
22
--- rxvt-unicode-2.2.orig/src/rxvtcolor.C
 
23
+++ rxvt-unicode-2.2/src/rxvtcolor.C
 
24
@@ -112,6 +112,7 @@
 
25
 bool rxvt_display::init ()
 
26
 {
 
27
   display = XOpenDisplay (id);
 
28
+  if(!display) exit(1);
 
29
 
 
30
   screen = DefaultScreen (display);
 
31
   root   = DefaultRootWindow (display);