Ignore:
Timestamp:
08/25/10 11:11:49 (11 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:
c11c3ce
Parents:
0316f8b
Message:
  • Avoid obliterating errno if it is likely to be set
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_pcapfile.c

    ra539aad r4e94095  
    190190               
    191191                if (err<1) {
    192                         trace_set_err(libtrace, TRACE_ERR_INIT_FAILED,
    193                                         "Reading pcap file header\n");
     192                        if (err == 0) {
     193                                trace_set_err(libtrace, TRACE_ERR_INIT_FAILED,
     194                                                "Reading pcap file header\n");
     195                        }
    194196                        return -1;
    195197                }
Note: See TracChangeset for help on using the changeset viewer.