diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-08 08:49:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-07-08 08:49:40 +0200 |
commit | 14bd16ac56e81e4912341cb731dc54af0dbe9e6c (patch) | |
tree | 729afe775b6a0b5f15e67ad93909d539aaf0429e /editors | |
parent | acff3733bae6a9928d0109d5e4f93c32e82969d8 (diff) | |
download | busybox-w32-14bd16ac56e81e4912341cb731dc54af0dbe9e6c.tar.gz busybox-w32-14bd16ac56e81e4912341cb731dc54af0dbe9e6c.tar.bz2 busybox-w32-14bd16ac56e81e4912341cb731dc54af0dbe9e6c.zip |
more tweak for bionic
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/diff.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/diff.c b/editors/diff.c index 8c0a31f47..3a3334640 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -693,10 +693,12 @@ static bool diff(FILE* fp[2], char *file[2]) | |||
693 | 693 | ||
694 | static int diffreg(char *file[2]) | 694 | static int diffreg(char *file[2]) |
695 | { | 695 | { |
696 | FILE *fp[2] = { stdin, stdin }; | 696 | FILE *fp[2]; |
697 | bool binary = false, differ = false; | 697 | bool binary = false, differ = false; |
698 | int status = STATUS_SAME, i; | 698 | int status = STATUS_SAME, i; |
699 | 699 | ||
700 | fp[0] = stdin; | ||
701 | fp[1] = stdin; | ||
700 | for (i = 0; i < 2; i++) { | 702 | for (i = 0; i < 2; i++) { |
701 | int fd = open_or_warn_stdin(file[i]); | 703 | int fd = open_or_warn_stdin(file[i]); |
702 | if (fd == -1) | 704 | if (fd == -1) |