From 14bd16ac56e81e4912341cb731dc54af0dbe9e6c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Jul 2011 08:49:40 +0200 Subject: more tweak for bionic Signed-off-by: Denys Vlasenko --- editors/diff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/diff.c b/editors/diff.c index 8c0a31f..3a33346 100644 --- a/editors/diff.c +++ b/editors/diff.c @@ -693,10 +693,12 @@ static bool diff(FILE* fp[2], char *file[2]) static int diffreg(char *file[2]) { - FILE *fp[2] = { stdin, stdin }; + FILE *fp[2]; bool binary = false, differ = false; int status = STATUS_SAME, i; + fp[0] = stdin; + fp[1] = stdin; for (i = 0; i < 2; i++) { int fd = open_or_warn_stdin(file[i]); if (fd == -1) -- cgit v1.1