X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/fa187d6c87100b0c5d626eceb4369eef79176138..e6f606748a384c5681985ec063f976520e93156a:/tig.c diff --git a/tig.c b/tig.c index 8bae0d5..6a1f3d1 100644 --- a/tig.c +++ b/tig.c @@ -2583,6 +2583,8 @@ init_display(void) /* Leave stdin and stdout alone when acting as a pager. */ FILE *io = fopen("/dev/tty", "r+"); + if (!io) + die("Failed to open /dev/tty"); cursed = !!newterm(NULL, io, io); }