Ticket #350: fix_compare_on_empty_file.diff
File fix_compare_on_empty_file.diff, 397 bytes (added by snizovtsev, 16 years ago) |
---|
-
src/cmd.c
diff -Naur mc-4.6.2-orig/src/cmd.c mc-4.6.2/src/cmd.c
old new 707 707 int file1, file2; 708 708 int result = -1; /* Different by default */ 709 709 710 if (size == 0) 711 return 0; 710 712 file1 = open (name1, O_RDONLY); 711 713 if (file1 >= 0){ 712 714 file2 = open (name2, O_RDONLY);