Ticket #350: fix_compare_on_empty_file.diff

File fix_compare_on_empty_file.diff, 397 bytes (added by snizovtsev, 10 years ago)
  • src/cmd.c

    diff -Naur mc-4.6.2-orig/src/cmd.c mc-4.6.2/src/cmd.c
    old new  
    707707    int file1, file2; 
    708708    int result = -1;            /* Different by default */ 
    709709 
     710    if (size == 0) 
     711        return 0; 
    710712    file1 = open (name1, O_RDONLY); 
    711713    if (file1 >= 0){ 
    712714        file2 = open (name2, O_RDONLY);