Changeset b7922c7


Ignore:
Timestamp:
07/01/11 10:43:19 (10 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
8782b67
Parents:
9ca0b29
Message:
  • Fixed bug where libtrace was unable to guess the trace format for small trace files - turns out EOF should NOT be treated as an error condition :)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ior-peek.c

    r0f6879e rb7922c7  
    141141        DATA(io)->offset = 0;
    142142        DATA(io)->length = bytes_read;
    143 
     143       
    144144        /* Error? */
    145145        if (bytes_read < 1)
     
    274274
    275275                /* Pass errors up */
    276                 if (read_amount <1) {
     276                if (read_amount <0) {
    277277                        return read_amount;
    278278                }
Note: See TracChangeset for help on using the changeset viewer.