From d78f85d61d525401ac3e5ef4b9b692d27cfdf8d2 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 12 May 2005 15:39:02 +0000 Subject: [PATCH] (diff_file): diff_handle was not initialized --- src/compare.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compare.c b/src/compare.c index d23a68a..916ee29 100644 --- a/src/compare.c +++ b/src/compare.c @@ -243,9 +243,9 @@ diff_file () } else { - int fd = open (current_stat_info.file_name, O_RDONLY | O_BINARY); + diff_handle = open (current_stat_info.file_name, O_RDONLY | O_BINARY); - if (fd < 0) + if (diff_handle < 0) { open_error (current_stat_info.file_name); skip_member (); @@ -278,7 +278,7 @@ diff_file () assign_string (&save_name, 0); } - status = close (fd); + status = close (diff_handle); if (status != 0) close_error (current_stat_info.file_name); -- 2.45.2